Skip to content

pr-2333/kairosci/attilio/pack-objects-missing-promisor-v3

tagged this 25 Nov 23:11
From: Alessio Attilio <attilio.alessio@protonmail.com>

Objects missing from a partial clone are expected to be absent.
When checking whether an object is in a promisor pack, do not BUG()
if its object info cannot be read. Such an object cannot be included
in the pack, so skip it.

Pass OBJECT_INFO_SKIP_FETCH_OBJECT explicitly so the lookup does not
trigger a lazy fetch.

Test filtered --unshallow and --deepen fetches, as well as a subsequent
fetch that repacks links to promisor commits with missing trees.

Signed-off-by: Alessio Attilio <attilio.alessio@protonmail.com>

Submitted-As: https://lore.kernel.org/git/pull.2333.v3.git.1795648282594.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.2333.git.1795635624820.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.2333.v2.git.1795636170423.gitgitgadget@gmail.com
Assets 2
Loading