]> git.ipfire.org Git - thirdparty/git.git/commit - fetch-pack.c
fetch-pack: print and use dangling .gitmodules
authorJonathan Tan <jonathantanmy@google.com>
Mon, 22 Feb 2021 19:20:09 +0000 (11:20 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Feb 2021 20:07:40 +0000 (12:07 -0800)
commit5476e1efded571e374cd97c7d69f17962ba1c44f
tree89b90c60cb783a579dfc10e045adb1499d47ece0
parentb664e9ffa153189dae9b88f32d1c5fedcf85056a
fetch-pack: print and use dangling .gitmodules

Teach index-pack to print dangling .gitmodules links after its "keep" or
"pack" line instead of declaring an error, and teach fetch-pack to check
such lines printed.

This allows the tree side of the .gitmodules link to be in one packfile
and the blob side to be in another without failing the fsck check,
because it is now fetch-pack which checks such objects after all
packfiles have been downloaded and indexed (and not index-pack on an
individual packfile, as it is before this commit).

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-index-pack.txt
builtin/index-pack.c
builtin/receive-pack.c
fetch-pack.c
fsck.c
fsck.h
pack-write.c
pack.h
t/t5702-protocol-v2.sh