diff options
Diffstat (limited to 'path.h')
-rw-r--r-- | path.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,6 +2,7 @@ #define PATH_H struct repository; +struct strbuf; /* * The result to all functions which return statically allocated memory may be @@ -164,7 +165,7 @@ extern void report_linked_checkout_garbage(void); const char *git_path_##var(struct repository *r) \ { \ if (!r->cached_paths.var) \ - r->cached_paths.var = git_pathdup(filename); \ + r->cached_paths.var = repo_git_path(r, filename); \ return r->cached_paths.var; \ } |