diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-04-07 14:23:18 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-07 14:23:18 -0700 |
| commit | 8a753b9a44038dddb7cdc41ce47f1ee47266d38c (patch) | |
| tree | f3a103399c64601dd852594be40388a27d0aa923 /builtin/index-pack.c | |
| parent | 58a8c382268512c83a3f8276cd80c89c06080ac3 (diff) | |
| parent | d39f04b638f7f862efebb5bf028bad50f6aa9e28 (diff) | |
Merge branch 'jh/hash-init-fixes'
An earlier code refactoring of the hash machinery missed a few
required calls to init_fn.
* jh/hash-init-fixes:
index-pack, unpack-objects: restore missing ->init_fn
Diffstat (limited to 'builtin/index-pack.c')
| -rw-r--r-- | builtin/index-pack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/index-pack.c b/builtin/index-pack.c index 52cc97d52c..50573ba049 100644 --- a/builtin/index-pack.c +++ b/builtin/index-pack.c @@ -1286,6 +1286,7 @@ static void parse_pack_objects(unsigned char *hash) /* Check pack integrity */ flush(); + the_hash_algo->init_fn(&tmp_ctx); git_hash_clone(&tmp_ctx, &input_ctx); git_hash_final(hash, &tmp_ctx); if (!hasheq(fill(the_hash_algo->rawsz), hash, the_repository->hash_algo)) |
