summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2019-05-09 14:22:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-05-13 02:52:19 (GMT)
commitc7944050af45c7384f97c712cb4d126672c7cfa6 (patch)
tree55e146b58b56a8c0d0d9a81f9ce58aa4b645f7d9 /commit.c
parent93b4405ffe4ad9308740e7c1c71383bfc369baaa (diff)
downloadgit-c7944050af45c7384f97c712cb4d126672c7cfa6.zip
git-c7944050af45c7384f97c712cb4d126672c7cfa6.tar.gz
git-c7944050af45c7384f97c712cb4d126672c7cfa6.tar.bz2
commit-graph: fix the_repository reference
The parse_commit_buffer() method takes a repository pointer, so it should not refer to the_repository anymore. Signed-off-by: Derrick Stolee <dstolee@microsoft.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 a5333c7..e4d1233 100644
--- a/commit.c
+++ b/commit.c
@@ -443,7 +443,7 @@ int parse_commit_buffer(struct repository *r, struct commit *item, const void *b
item->date = parse_commit_date(bufptr, tail);
if (check_graph)
- load_commit_graph_info(the_repository, item);
+ load_commit_graph_info(r, item);
return 0;
}