Skip to content

Commit

Permalink
rebase: check for errors from git-commit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Wong authored and Junio C Hamano committed Jun 28, 2006
1 parent c5f448b commit f0ef059
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion git-rebase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@ continue_merge () {

if test -n "`git-diff-index HEAD`"
then
if ! git-commit -C "`cat $dotest/current`"
then
echo "Commit failed, please do not call \"git commit\""
echo "directly, but instead do one of the following: "
die "$RESOLVEMSG"
fi
printf "Committed: %0${prec}d" $msgnum
git-commit -C "`cat $dotest/current`"
else
printf "Already applied: %0${prec}d" $msgnum
fi
Expand Down

0 comments on commit f0ef059

Please sign in to comment.