diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2020-08-17 12:48:20 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-24 17:34:24 -0700 |
commit | 0bd96bea2f9718d2ce03e0bc4bbf0b5894f9b28e (patch) | |
tree | e9153e55e920593d01149dd1120df8155f840684 /commit.c | |
parent | fetch-pack: document only_packfile in get_pack() (diff) | |
download | tgif-0bd96bea2f9718d2ce03e0bc4bbf0b5894f9b28e.tar.xz |
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>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions