diff options
author | Junio C Hamano <junkio@cox.net> | 2005-12-24 00:02:08 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-24 00:02:08 -0800 |
commit | 6ab58895cd951f6f5c96fa432afb122cfeb12746 (patch) | |
tree | 2a708aa291f58887198d3951e342996b2257e88f /git-merge.sh | |
parent | c63da8d8e8c5b5078e59af15c1a41ff98ad61d59 (diff) | |
parent | ac44f3e7c05390531004d567481004c96d1b262c (diff) |
GIT 1.0.4v1.0.4
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-merge.sh')
-rwxr-xr-x | git-merge.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/git-merge.sh b/git-merge.sh index e50fbb1160..0a158ef779 100755 --- a/git-merge.sh +++ b/git-merge.sh @@ -209,6 +209,7 @@ case "$use_strategies" in esac result_tree= best_cnt=-1 best_strategy= wt_strategy= +merge_was_ok= for strategy in $use_strategies do test "$wt_strategy" = '' || { @@ -228,6 +229,7 @@ do exit=$? if test "$no_commit" = t && test "$exit" = 0 then + merge_was_ok=t exit=1 ;# pretend it left conflicts. fi @@ -293,4 +295,11 @@ do done >"$GIT_DIR/MERGE_HEAD" echo $merge_msg >"$GIT_DIR/MERGE_MSG" -die "Automatic merge failed/prevented; fix up by hand" +if test "$merge_was_ok" = t +then + echo >&2 \ + "Automatic merge went well; stopped before committing as requested" + exit 0 +else + die "Automatic merge failed; fix up by hand" +fi |