Skip to content

Commit ed8ab54

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge??? 'merge-ort-impl-leakfix'
This should fix the `linux-leaks` failure in t6415.15 "do not lose untracked in merge". Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 3396561 + 128f77f commit ed8ab54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

merge-ort.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4635,6 +4635,7 @@ void merge_switch_to_result(struct merge_options *opt,
46354635
if (checkout(opt, head, result->tree)) {
46364636
/* failure to function */
46374637
result->clean = -1;
4638+
merge_finalize(opt, result);
46384639
return;
46394640
}
46404641
trace2_region_leave("merge", "checkout", opt->repo);
@@ -4645,6 +4646,7 @@ void merge_switch_to_result(struct merge_options *opt,
46454646
/* failure to function */
46464647
opt->priv = NULL;
46474648
result->clean = -1;
4649+
merge_finalize(opt, result);
46484650
return;
46494651
}
46504652
opt->priv = NULL;

0 commit comments

Comments
 (0)