Merge branch 'en/ort-finalize-after-0-merges-fix'

A small API fix to the ort merge strategy backend.

* en/ort-finalize-after-0-merges-fix:
  merge-ort: fix calling merge_finalize() with no intermediate merge
This commit is contained in:
Junio C Hamano 2023-05-02 10:13:34 -07:00
Родитель 4ca12e10e6 000c4ceca7
Коммит 3927312601
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -4722,14 +4722,14 @@ void merge_switch_to_result(struct merge_options *opt,
void merge_finalize(struct merge_options *opt,
struct merge_result *result)
{
struct merge_options_internal *opti = result->priv;
if (opt->renormalize)
git_attr_set_direction(GIT_ATTR_CHECKIN);
assert(opt->priv == NULL);
clear_or_reinit_internal_opts(opti, 0);
FREE_AND_NULL(opti);
if (result->priv) {
clear_or_reinit_internal_opts(result->priv, 0);
FREE_AND_NULL(result->priv);
}
}
/*** Function Grouping: helper functions for merge_incore_*() ***/