diff options
-rw-r--r-- | merge-recursive.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/merge-recursive.c b/merge-recursive.c index 9e527dec62..c9e4dbc349 100644 --- a/merge-recursive.c +++ b/merge-recursive.c @@ -2069,8 +2069,10 @@ int merge_recursive(struct merge_options *o, o->ancestor = "merged common ancestors"; clean = merge_trees(o, h1->tree, h2->tree, merged_common_ancestors->tree, &mrtree); - if (clean < 0) + if (clean < 0) { + flush_output(o); return clean; + } if (o->call_depth) { *result = make_virtual_commit(mrtree, "merged tree"); |