diff options
Diffstat (limited to 'hook.c')
| -rw-r--r-- | hook.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -16,8 +16,7 @@ const char *find_hook(struct repository *r, const char *name) int found_hook; - strbuf_reset(&path); - strbuf_repo_git_path(&path, r, "hooks/%s", name); + repo_git_path_replace(r, &path, "hooks/%s", name); found_hook = access(path.buf, X_OK) >= 0; #ifdef STRIP_EXTENSION if (!found_hook) { |
