summaryrefslogtreecommitdiff
path: root/path.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-12-15 00:09:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-12-28 18:06:33 (GMT)
commitb6b24fc57bb2132955756771f9588a3cfb050350 (patch)
tree7917cc4ca18299c23b902f97929e7e8e8276b364 /path.h
parent6a7895fd8a3bd409f2b71ffc355d5142172cc2a0 (diff)
downloadgit-b6b24fc57bb2132955756771f9588a3cfb050350.zip
git-b6b24fc57bb2132955756771f9588a3cfb050350.tar.gz
git-b6b24fc57bb2132955756771f9588a3cfb050350.tar.bz2
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>
Diffstat (limited to 'path.h')
-rw-r--r--path.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/path.h b/path.h
index b654ea8..651e615 100644
--- a/path.h
+++ b/path.h
@@ -165,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; \
}