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>
This commit is contained in:

committed by
Junio C Hamano

parent
93b4405ffe
commit
c7944050af
2
commit.c
2
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);
|
item->date = parse_commit_date(bufptr, tail);
|
||||||
|
|
||||||
if (check_graph)
|
if (check_graph)
|
||||||
load_commit_graph_info(the_repository, item);
|
load_commit_graph_info(r, item);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user