worktree: introduce "add" command
[gitweb.git] / run-command.c
index a47699966c59f708683e439bcd3296d5fce8acf5..c4a62aa0e8fb8eba8d6972461eed07097a52a976 100644 (file)
@@ -794,9 +794,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;