aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/hook.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/hook.c')
-rw-r--r--builtin/hook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/hook.c b/builtin/hook.c
index 672d2e37e8..044c27aa95 100644
--- a/builtin/hook.c
+++ b/builtin/hook.c
@@ -55,7 +55,7 @@ static int run(int argc, const char **argv, const char *prefix,
strvec_push(&opt.args, argv[i]);
/* Need to take into account core.hooksPath */
- git_config(git_default_config, NULL);
+ repo_config(the_repository, git_default_config, NULL);
hook_name = argv[0];
if (!ignore_missing)