aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-08-21 11:59:11 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-08-21 11:59:11 +0200
commit6cb2544494c18aea6a5203cb3c6f46fe67e42db4 (patch)
treeebf1044310d61fde80677587d0af05b7d3edef20
parent547c985b28477eb2cde7755d965415089fc8bd88 (diff)
downloadreposync-6cb2544494c18aea6a5203cb3c6f46fe67e42db4.tar.gz
allow '-' in repo name
-rwxr-xr-xgitwrapper.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitwrapper.sh b/gitwrapper.sh
index 594b326..f4907fd 100755
--- a/gitwrapper.sh
+++ b/gitwrapper.sh
@@ -46,7 +46,7 @@ function has_access() {
return 1
fi
- readonly reponame_regex='^\w+\.git$'
+ readonly reponame_regex='^[A-Za-z0-9_\-]+\.git$'
if [[ ! "$(basename "$1")" =~ $reponame_regex ]]; then
perror "Invalid repository"
return 1