summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-05-17 22:51:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-17 23:13:10 (GMT)
commit0437a2e365f3b9156097d029ca6f91cbb8bffd5e (patch)
treee588c71c154de32809a11eae3a59fbef3e0f3cdc /commit.c
parentd0e5dd0ed49a8e79dab8a027ab14ee29709b47c6 (diff)
downloadgit-0437a2e365f3b9156097d029ca6f91cbb8bffd5e.zip
git-0437a2e365f3b9156097d029ca6f91cbb8bffd5e.tar.gz
git-0437a2e365f3b9156097d029ca6f91cbb8bffd5e.tar.bz2
cache: convert get_graft_file to handle arbitrary repositories
This conversion was done without the #define trick used in the earlier series refactoring to have better repository access, because this function is easy to review, as all lines are converted and it has only one caller. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.c b/commit.c
index 3fcb2fd..24028fd 100644
--- a/commit.c
+++ b/commit.c
@@ -204,7 +204,7 @@ static void prepare_commit_graft_the_repository(void)
if (commit_graft_prepared)
return;
- graft_file = get_graft_file();
+ graft_file = get_graft_file(the_repository);
read_graft_file(the_repository, graft_file);
/* make sure shallows are read */
is_repository_shallow(the_repository);