diff options
| author | Taylor Blau <me@ttaylorr.com> | 2025-10-15 18:27:38 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-16 10:08:53 -0700 |
| commit | a7a5a607b9c21c7988782cf8ed04078ca320c784 (patch) | |
| tree | 1c79e7c416dd0bae91b0fbf7017acf73959399e5 /builtin/repack.c | |
| parent | 9a53583b77c35576f87b7e29cb109b46d29ad803 (diff) | |
| download | git-a7a5a607b9c21c7988782cf8ed04078ca320c784.tar.gz | |
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>
Diffstat (limited to 'builtin/repack.c')
| -rw-r--r-- | builtin/repack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/repack.c b/builtin/repack.c index 7d62959dc2..a7e94ed03c 100644 --- a/builtin/repack.c +++ b/builtin/repack.c @@ -452,7 +452,7 @@ static void repack_promisor_objects(struct repository *repo, struct string_list_item *item; char *promisor_name; - if (line.len != the_hash_algo->hexsz) + if (line.len != repo->hash_algo->hexsz) die(_("repack: Expecting full hex object ID lines only from pack-objects.")); item = string_list_append(names, line.buf); |
