From: Matthijs Kooijman Date: Thu, 13 Aug 2009 09:52:06 +0000 (+0200) Subject: git: Make git-wrapper exit if repos creation fails. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=d25f70d83bd46b7e0b58f7a87d522f74fdf28431;p=matthijs%2Fservers%2Fdrsnuggles.git git: Make git-wrapper exit if repos creation fails. --- diff --git a/usr/local/bin/git-wrapper b/usr/local/bin/git-wrapper index 6896ec8..570a47d 100755 --- a/usr/local/bin/git-wrapper +++ b/usr/local/bin/git-wrapper @@ -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