]> git.ipfire.org Git - thirdparty/git.git/commit
index-pack, unpack-objects: restore missing ->init_fn
authorJensen Huang <hmz007@gmail.com>
Tue, 18 Mar 2025 11:16:10 +0000 (19:16 +0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Mar 2025 19:27:33 +0000 (12:27 -0700)
commitd39f04b638f7f862efebb5bf028bad50f6aa9e28
tree5d2e7a85d90d19ebb60b53ee1ea74cbe0f8c82d5
parent0578f1e66aa381356bfe2f53decf3864d88d23d3
index-pack, unpack-objects: restore missing ->init_fn

Commit 0578f1e66a ("global: adapt callers to use generic hash context helpers")
accidentally removed `->init_fn`, which is required for OpenSSL 3+ SHA1.

This fixes the following error on fetch:
  fatal: fetch-pack: invalid index-pack output

Signed-off-by: Jensen Huang <hmz007@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/index-pack.c
builtin/unpack-objects.c