path.h: make REPO_GIT_PATH_FUNC repository agnostic

git_pathdup uses the_repository internally, but the macro REPO_GIT_PATH_FUNC is specifically made for arbitrary repositories. Switch to repo_git_path which works on arbitrary repositories. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Stefan Beller committed Dec 14, 2018 at 16:09 UTC b6b24fc57bb2132955756771f9588a3cfb050350
1 file changed +1 -1
path.h
+1 -1
@@ -165,7 +165,7 @@ extern void report_linked_checkout_garbage(void);
165 const char *git_path_##var(struct repository *r) \
166 { \
167 if (!r->cached_paths.var) \
168 - r->cached_paths.var = git_pathdup(filename); \
168 + r->cached_paths.var = repo_git_path(r, filename); \
169 return r->cached_paths.var; \
170 }
171