diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2021-02-22 19:20:09 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-22 20:07:40 (GMT) |
commit | 5476e1efded571e374cd97c7d69f17962ba1c44f (patch) | |
tree | 89b90c60cb783a579dfc10e045adb1499d47ece0 /builtin/receive-pack.c | |
parent | b664e9ffa153189dae9b88f32d1c5fedcf85056a (diff) | |
download | git-5476e1efded571e374cd97c7d69f17962ba1c44f.zip git-5476e1efded571e374cd97c7d69f17962ba1c44f.tar.gz git-5476e1efded571e374cd97c7d69f17962ba1c44f.tar.bz2 |
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>
Diffstat (limited to 'builtin/receive-pack.c')
-rw-r--r-- | builtin/receive-pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index d49d050..ed2c9b4 100644 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -2275,7 +2275,7 @@ static const char *unpack(int err_fd, struct shallow_info *si) status = start_command(&child); if (status) return "index-pack fork failed"; - pack_lockfile = index_pack_lockfile(child.out); + pack_lockfile = index_pack_lockfile(child.out, NULL); close(child.out); status = finish_command(&child); if (status) |