merge: convert post-merge to use hook.h
Teach post-merge to use the hook.h library instead of the run-command.h library to run hooks. Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Acked-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Emily Shaffer committed
Dec 22, 2021 at 04:59 UTC
67ad630617b279e24288aa398f7264ceacc7ee6c
1 file changed
+1
-1
builtin/merge.c
+1
-1
@@ -487,7 +487,7 @@ static void finish(struct commit *head_commit,
487
}
488
489
/* Run a post-merge hook */
490
- run_hook_le(NULL, "post-merge", squash ? "1" : "0", NULL);
490
+ run_hooks_l("post-merge", squash ? "1" : "0", NULL);
491
492
apply_autostash(git_path_merge_autostash(the_repository));
493
strbuf_release(&reflog_message);