diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-09-17 13:38:35 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-09-17 13:38:35 -0300 |
commit | d1bdb09e361ec4a057356d9055068c837d0005ba (patch) | |
tree | df7c4d8c9c55f1c69001726b87013ad6498e8532 | |
parent | 48828bef374bf88f8e61a4ba8a31c872131d925e (diff) |
The test was inverted
-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 |