From d25f70d83bd46b7e0b58f7a87d522f74fdf28431 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 13 Aug 2009 11:52:06 +0200 Subject: [PATCH] git: Make git-wrapper exit if repos creation fails. --- usr/local/bin/git-wrapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2