aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/unpack-objects.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-04-07 14:23:18 -0700
committerJunio C Hamano <gitster@pobox.com>2025-04-07 14:23:18 -0700
commit8a753b9a44038dddb7cdc41ce47f1ee47266d38c (patch)
treef3a103399c64601dd852594be40388a27d0aa923 /builtin/unpack-objects.c
parent58a8c382268512c83a3f8276cd80c89c06080ac3 (diff)
parentd39f04b638f7f862efebb5bf028bad50f6aa9e28 (diff)
downloadgit-8a753b9a44038dddb7cdc41ce47f1ee47266d38c.tar.gz
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/unpack-objects.c')
-rw-r--r--builtin/unpack-objects.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/unpack-objects.c b/builtin/unpack-objects.c
index 8383bcf404..c5a6dca856 100644
--- a/builtin/unpack-objects.c
+++ b/builtin/unpack-objects.c
@@ -668,6 +668,7 @@ int cmd_unpack_objects(int argc,
the_hash_algo->init_fn(&ctx);
unpack_all();
git_hash_update(&ctx, buffer, offset);
+ the_hash_algo->init_fn(&tmp_ctx);
git_hash_clone(&tmp_ctx, &ctx);
git_hash_final_oid(&oid, &tmp_ctx);
if (strict) {