Skip to content

Commit

Permalink
commit-graph: fix the_repository reference
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
derrickstolee authored and gitster committed May 13, 2019
1 parent 93b4405 commit c794405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c794405

Please sign in to comment.