summaryrefslogtreecommitdiff
path: root/run-command.c
diff options
context:
space:
mode:
Diffstat (limited to 'run-command.c')
-rw-r--r--run-command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/run-command.c b/run-command.c
index aad03ab705..4d73e90fad 100644
--- a/run-command.c
+++ b/run-command.c
@@ -795,9 +795,9 @@ int finish_async(struct async *async)
#endif
}
-char *find_hook(const char *name)
+const char *find_hook(const char *name)
{
- char *path = git_path("hooks/%s", name);
+ const char *path = git_path("hooks/%s", name);
if (access(path, X_OK) < 0)
path = NULL;