diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-08-15 08:19:27 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-15 08:19:27 +0200 |
commit | d86ac14dd7258a187fb19ad3d8e11f840350a01f (patch) | |
tree | a22130f8631957fd37e3d3d008047470d5edb0cc /hook.c | |
parent | The twelfth batch (diff) | |
parent | hook API: don't segfault on strbuf_addf() to NULL "out" (diff) | |
download | git-d86ac14dd7258a187fb19ad3d8e11f840350a01f.tar.xz git-d86ac14dd7258a187fb19ad3d8e11f840350a01f.zip |
Merge branch 'ab/hooks-regression-fix'
A follow-up fix to a fix for a regression in 2.36.
* ab/hooks-regression-fix:
hook API: don't segfault on strbuf_addf() to NULL "out"
Diffstat (limited to 'hook.c')
-rw-r--r-- | hook.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -62,9 +62,6 @@ static int pick_next_hook(struct child_process *cp, strvec_push(&cp->args, hook_path); strvec_pushv(&cp->args, hook_cb->options->args.v); - /* Provide context for errors if necessary */ - *pp_task_cb = (char *)hook_path; - /* * This pick_next_hook() will be called again, we're only * running one hook, so indicate that no more work will be @@ -80,13 +77,9 @@ static int notify_start_failure(struct strbuf *out, void *pp_task_cp) { struct hook_cb_data *hook_cb = pp_cb; - const char *hook_path = pp_task_cp; hook_cb->rc |= 1; - strbuf_addf(out, _("Couldn't start hook '%s'\n"), - hook_path); - return 1; } |