Skip to content

Commit

Permalink
git-merge: fail correctly when we cannot fast forward.
Browse files Browse the repository at this point in the history
When we cannot fast forward the working tree and the current
branch, git-merge did not exit with non-zero status.

Noticed by Larry Streepy, the section to be fixed identfied by
Johannes Schindelin.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Mar 3, 2007
1 parent 64edf4b commit 7d79c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ f,*)
git-update-index --refresh 2>/dev/null
new_head=$(git-rev-parse --verify "$1^0") &&
git-read-tree -v -m -u --exclude-per-directory=.gitignore $head "$new_head" &&
finish "$new_head" "Fast forward"
finish "$new_head" "Fast forward" || exit
dropsave
exit 0
;;
Expand Down

0 comments on commit 7d79c86

Please sign in to comment.