]> git.ipfire.org Git - thirdparty/git.git/commit
transport: propagate fsck configuration during bundle fetch
authorJustin Tobler <jltobler@gmail.com>
Wed, 27 Nov 2024 23:33:12 +0000 (17:33 -0600)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Nov 2024 03:07:58 +0000 (12:07 +0900)
commitbaa159137be36965e03192528b001ffc39b8352f
tree85c8571ddeaa8e1803ca41277f9fbc96f5c50bb1
parent05596e93c50b286fa445af8ae572759be079092d
transport: propagate fsck configuration during bundle fetch

When fetching directly from a bundle, fsck message severity
configuration is not propagated to the underlying git-index-pack(1). It
is only capable of enabling or disabling fsck checks entirely. This does
not align with the fsck behavior for fetches through git-fetch-pack(1).

Use the fsck config parsing from fetch-pack to populate fsck message
severity configuration and wire it through to `unbundle()` to enable the
same fsck verification as done through fetch-pack.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5607-clone-bundle.sh
transport.c