aboutsummaryrefslogtreecommitdiff
path: root/gitwrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gitwrapper.sh')
-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