summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-03-30 18:01:10 -0700
committerJunio C Hamano <gitster@pobox.com>2022-03-30 18:01:10 -0700
commitcb3b3974b3321522b1c5c61d358d1259f19aae29 (patch)
tree18cf207785a37d2ec354af163a8eb364e9faa8d1 /commit.c
parent805e0a68082a217f0112db9ee86a022227a9c81b (diff)
parent4369e3a1a39895ab51c2bef2985255ad05957a20 (diff)
Merge branch 'ab/racy-hooks'
Regression fix. * ab/racy-hooks: hooks: fix "invoked hook" regression in a8cc5943338
Diffstat (limited to 'commit.c')
-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);
}