rebase: return non-zero error code if format-patch fails
authorClemens Buchacher <redacted>
Thu, 2 Jul 2015 09:11:33 +0000 (11:11 +0200)
committerJunio C Hamano <redacted>
Wed, 8 Jul 2015 22:36:42 +0000 (15:36 -0700)
Since e481af06 (rebase: Handle cases where format-patch fails) we
notice if format-patch fails and return immediately from
git-rebase--am. We save the return value with ret=$?, but then we
return $?, which is usually zero in this case.

Fix this by returning $ret instead.

Cc: Andrew Wong <redacted>
Signed-off-by: Clemens Buchacher <redacted>
Helped-by: Jorge Nunes <redacted>
Signed-off-by: Junio C Hamano <redacted>
git-rebase--am.sh

index f9237323331e992a58cee0af79090a7bbeec434c..9ae898bc1d7d301983893e6df404c696b80a87f5 100644 (file)
@@ -78,7 +78,7 @@ else
 
                As a result, git cannot rebase them.
                EOF
-               return $?
+               return $ret
        fi
 
        git am $git_am_opt --rebasing --resolvemsg="$resolvemsg" \
git clone https://git.99rst.org/PROJECT