From: Emily Shaffer Date: Wed, 22 Dec 2021 03:59:33 +0000 (+0100) Subject: am: convert applypatch-msg to use hook.h X-Git-Tag: v2.36.0-rc0~174^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=432a50bebf45e7d3be2677426aa57f7ab35f83da;p=thirdparty%2Fgit.git am: convert applypatch-msg to use hook.h Teach applypatch-msg to use the hook.h library instead of the run-command.h library. Signed-off-by: Emily Shaffer Signed-off-by: Ævar Arnfjörð Bjarmason Acked-by: Emily Shaffer Signed-off-by: Junio C Hamano --- diff --git a/builtin/am.c b/builtin/am.c index 4b334cb7b1..ae0c484dcb 100644 --- a/builtin/am.c +++ b/builtin/am.c @@ -448,7 +448,7 @@ static int run_applypatch_msg_hook(struct am_state *state) int ret; assert(state->msg); - ret = run_hook_le(NULL, "applypatch-msg", am_path(state, "final-commit"), NULL); + ret = run_hooks_l("applypatch-msg", am_path(state, "final-commit"), NULL); if (!ret) { FREE_AND_NULL(state->msg);