]> git.ipfire.org Git - thirdparty/git.git/commit - fetch-pack.c
fetch-pack: with packfile URIs, use index-pack arg
authorJonathan Tan <jonathantanmy@google.com>
Mon, 22 Feb 2021 19:20:08 +0000 (11:20 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Feb 2021 20:07:40 +0000 (12:07 -0800)
commitb664e9ffa153189dae9b88f32d1c5fedcf85056a
tree660938c10dd8ffa1b76ef72a77058eea99876150
parent27e35ba6c6b532ad6fc88b554d437b6892b4e915
fetch-pack: with packfile URIs, use index-pack arg

Unify the index-pack arguments used when processing the inline pack and
when downloading packfiles referenced by URIs. This is done by teaching
get_pack() to also store the index-pack arguments whenever at least one
packfile URI is given, and then when processing the packfile URI(s),
using the stored arguments.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fetch-pack.c