am -3: do not let failed merge from completing the error codepath
commitc63d4b2fe86876cc210d8bf22bd84d617f7815b7
authorJunio C Hamano <gitster@pobox.com>
Fri, 9 Oct 2015 20:38:30 +0000 (9 13:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Oct 2015 20:38:30 +0000 (9 13:38 -0700)
tree05e8d7cbd26ae9998dfaaf47c9b7a20253d3f0d8
parent22f698cb188243b313e024d618283e0293e37140
am -3: do not let failed merge from completing the error codepath

When "am" was rewritten in C, the codepath for falling back to
three-way merge was mistakenly made to make an internal call to
merge-recursive, disabling the error reporting code for certain
types of errors merge-recursive detects and reports by calling
die().

This is a quick-fix for correctness.  The ideal endgame would be to
replace run_command() in run_fallback_merge_recursive() with a
direct call after making sure that internal call to merge-recursive
does not die().

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/am.c