mirror of
https://github.com/git-for-windows/git.git
synced 2026-05-01 02:53:51 -05:00
commit-graph: stop using the_hash_algo
Stop using `the_hash_algo` as it implicitly relies on `the_repository`. Instead, we either use the hash algo provided via the context or, if there is no such hash algo, we use `the_repository` explicitly. Such uses will be removed in subsequent commits. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
f1141b4391
commit
89cc9b9adf
@@ -109,7 +109,8 @@ static int graph_verify(int argc, const char **argv, const char *prefix,
|
||||
opened = OPENED_GRAPH;
|
||||
else if (errno != ENOENT)
|
||||
die_errno(_("Could not open commit-graph '%s'"), graph_name);
|
||||
else if (open_commit_graph_chain(chain_name, &fd, &st))
|
||||
else if (open_commit_graph_chain(chain_name, &fd, &st,
|
||||
the_repository->hash_algo))
|
||||
opened = OPENED_CHAIN;
|
||||
else if (errno != ENOENT)
|
||||
die_errno(_("could not open commit-graph chain '%s'"), chain_name);
|
||||
|
||||
Reference in New Issue
Block a user