summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.c b/commit.c
index ffcc4a97cd..59b6c3e455 100644
--- a/commit.c
+++ b/commit.c
@@ -1742,5 +1742,6 @@ int run_commit_hook(int editor_is_used, const char *index_file,
strvec_push(&opt.args, arg);
va_end(args);
+ opt.invoked_hook = invoked_hook;
return run_hooks_opt(name, &opt);
}