mirror of
https://github.com/git/git.git
synced 2024-11-24 02:17:02 +08:00
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 <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>
This commit is contained in:
parent
25d4e02cfc
commit
432a50bebf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user