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