diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-08-21 11:59:11 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-08-21 11:59:11 +0200 |
commit | 6cb2544494c18aea6a5203cb3c6f46fe67e42db4 (patch) | |
tree | ebf1044310d61fde80677587d0af05b7d3edef20 | |
parent | 547c985b28477eb2cde7755d965415089fc8bd88 (diff) | |
download | reposync-6cb2544494c18aea6a5203cb3c6f46fe67e42db4.tar.gz |
allow '-' in repo name
-rwxr-xr-x | gitwrapper.sh | 2 |
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 |