Skip to content

Commit f0ef059

Browse files
Eric WongJunio C Hamano
authored andcommitted
rebase: check for errors from git-commit
commit does not always succeed, so we'll have to check for it in the absence of set -e. This fixes a regression introduced in 9e4bc7d Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent c5f448b commit f0ef059

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

git-rebase.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,13 @@ continue_merge () {
5454

5555
if test -n "`git-diff-index HEAD`"
5656
then
57+
if ! git-commit -C "`cat $dotest/current`"
58+
then
59+
echo "Commit failed, please do not call \"git commit\""
60+
echo "directly, but instead do one of the following: "
61+
die "$RESOLVEMSG"
62+
fi
5763
printf "Committed: %0${prec}d" $msgnum
58-
git-commit -C "`cat $dotest/current`"
5964
else
6065
printf "Already applied: %0${prec}d" $msgnum
6166
fi

0 commit comments

Comments
 (0)