]> git.ipfire.org Git - thirdparty/git.git/blobdiff - hook.c
i18n: fix command template placeholder format
[thirdparty/git.git] / hook.c
diff --git a/hook.c b/hook.c
index d113ee7faaec8d7c6d78c79fc0d4ea9d0d229e85..a493939a4fc5901d85a9ad08ca10669641598389 100644 (file)
--- a/hook.c
+++ b/hook.c
@@ -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;
 }