diff options
Diffstat (limited to 'git-shell-commands/create-bare-repo')
-rwxr-xr-x | git-shell-commands/create-bare-repo | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-shell-commands/create-bare-repo b/git-shell-commands/create-bare-repo index 7559fc3..3051c9d 100755 --- a/git-shell-commands/create-bare-repo +++ b/git-shell-commands/create-bare-repo @@ -6,8 +6,8 @@ set -e for repo in $@; do -# Cleanup names - repo="`echo "$repo" | sed -e "s,^[/\.]\+,,g" -e "s,[^a-z0-9\./_-],,gi"`" +# Cleanup names, allow hidden repos + repo="`echo "$repo" | sed -e "s/\.\.//g" -e "s,^/\+,,g" -e "s,[^a-z0-9\./_-],,gi"`" test -d "$repo".git && continue mkdir -p "$repo".git |