]> git.ipfire.org Git - thirdparty/git.git/commit - fetch-pack.c
fetch-pack: do not check links for partial fetch
authorJonathan Tan <jonathantanmy@google.com>
Wed, 14 Mar 2018 18:42:41 +0000 (11:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Mar 2018 17:16:27 +0000 (10:16 -0700)
commit98a2ea46c2dedf45b5a94335462547a5d78a68e2
treeb0ed21e4ed7c27239fbc513dd0d969cffa699805
parentffb2c0fe5c2dbfe2be0a4743ffed622295e1124c
fetch-pack: do not check links for partial fetch

When doing a partial clone or fetch with 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 when doing a partial clone or fetch.

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