summaryrefslogtreecommitdiff
path: root/upload-pack.c
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2019-05-17 18:41:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-06-12 18:33:54 (GMT)
commitc3a3a964b29221a9b5fa305a08037c90b9f74be0 (patch)
tree135c502dec6dcbe723304db33a67f54b2b929916 /upload-pack.c
parent238def57fe7ba219c9e50094512fff1068ac5413 (diff)
downloadgit-c3a3a964b29221a9b5fa305a08037c90b9f74be0.zip
git-c3a3a964b29221a9b5fa305a08037c90b9f74be0.tar.gz
git-c3a3a964b29221a9b5fa305a08037c90b9f74be0.tar.bz2
commit-graph: use raw_object_store when closing
The close_commit_graph() method took a repository struct, but then only uses the raw_object_store within. Change the function prototype to make the method more flexible. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'upload-pack.c')
-rw-r--r--upload-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/upload-pack.c b/upload-pack.c
index d098ef5..b51bed2 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -717,7 +717,7 @@ static void deepen_by_rev_list(struct packet_writer *writer, int ac,
{
struct commit_list *result;
- close_commit_graph(the_repository);
+ close_commit_graph(the_repository->objects);
result = get_shallow_commits_by_rev_list(ac, av, SHALLOW, NOT_SHALLOW);
send_shallow(writer, result);
free_commit_list(result);