From d1bdb09e361ec4a057356d9055068c837d0005ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Tue, 17 Sep 2013 13:38:35 -0300 Subject: The test was inverted --- git-shell-commands/create-bare-repo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3