git: Make git-wrapper exit if repos creation fails.
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 13 Aug 2009 09:52:06 +0000 (11:52 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 13 Aug 2009 09:52:06 +0000 (11:52 +0200)
usr/local/bin/git-wrapper

index 6896ec8904e6dfe0677522564effdbb36a1868c7..570a47d2d737a82fcfda6365bd311a205b9ad2b5 100755 (executable)
@@ -37,7 +37,7 @@ do
                # When the client wants us to receive a pack, create the git
                # repository if it does not exist yet   
                if [ "`basename $0`" = "git-receive-pack" -a ! -e "$DIR" ]; then
-                       init_repos "$DIR"
+                       init_repos "$DIR" || exit 1
                fi
                ARGS[$i]="$DIR"
        else