Skip to content

Commit a7a5a60

Browse files
ttaylorrgitster
authored andcommitted
builtin/repack: avoid "the_hash_algo" in repack_promisor_objects()
In a similar spirit as the previous commits, avoid referring directly to "the_hash_algo" within builtin/repack.c::repack_promisor_objects(). Since there is already a repository pointer in scope, use its hash_algo value instead. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9a53583 commit a7a5a60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builtin/repack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ static void repack_promisor_objects(struct repository *repo,
452452
struct string_list_item *item;
453453
char *promisor_name;
454454

455-
if (line.len != the_hash_algo->hexsz)
455+
if (line.len != repo->hash_algo->hexsz)
456456
die(_("repack: Expecting full hex object ID lines only from pack-objects."));
457457
item = string_list_append(names, line.buf);
458458

0 commit comments

Comments
 (0)