aboutsummaryrefslogtreecommitdiffstats
path: root/path.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-12-28 10:40:58 -0800
committerJunio C Hamano <gitster@pobox.com>2018-12-28 10:40:58 -0800
commitb9fbc04e26fcc2c7ba6dda32512b3726d31e4beb (patch)
treed160a4832769b9f4733c8ecaf93e7eb565a37b2a /path.h
parentGit 2.20 (diff)
parentt/helper/test-repository: celebrate independence from the_repository (diff)
downloadgit-b9fbc04e26fcc2c7ba6dda32512b3726d31e4beb.tar.gz
git-b9fbc04e26fcc2c7ba6dda32512b3726d31e4beb.zip
Merge branch 'sb/more-repo-in-api' into md/list-objects-filter-by-depth
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 b654ea8ff5..651e6157fc 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; \
}