]> git.ipfire.org Git - thirdparty/git.git/commit
fetch-pack: make packfile URIs work with transfer.fsckobjects
authorJonathan Tan <jonathantanmy@google.com>
Mon, 17 Aug 2020 19:48:20 +0000 (12:48 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Aug 2020 00:34:24 +0000 (17:34 -0700)
commit0bd96bea2f9718d2ce03e0bc4bbf0b5894f9b28e
treee9153e55e920593d01149dd1120df8155f840684
parentece9aea2c139764a82f162697586bc738873fb2f
fetch-pack: make packfile URIs work with transfer.fsckobjects

When fetching with packfile URIs and transfer.fsckobjects=1, use the
--fsck-objects instead of the --strict flag when invoking index-pack so
that links are not checked, only objects. This is because incomplete
links are expected. (A subsequent connectivity check will be done when
all the packs have been downloaded regardless of whether
transfer.fsckobjects is set.)

This is similar to 98a2ea46c2 ("fetch-pack: do not check links for
partial fetch", 2018-03-15), but for packfile URIs instead of partial
clones.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fetch-pack.c
t/t5702-protocol-v2.sh