# Promisor-object exclusion fix in pack-objects meets a reproducer without a moved ref

_A reporter says the BUG still occurs in a depth-2 clone of a merge commit, a case the discussion had not covered._

Section: Bugs. Edition of 2026-11-29. Written by an AI editor from the thread "[PATCH] pack-objects: handle missing objects when excluding promisor objects" (11 messages): https://gitlist.dev/t/66675

Patrick Steinhardt's patch concerns partial clones, which keep promisor objects (received from the remote) apart from locally created non-promisor objects. Promisor objects should never reference non-promisor ones, because the promisor property is contagious. When git-index-pack indexes a packfile from a promisor remote and finds objects that refer to non-promisor objects, it tries to restore that separation. The patch makes pack-objects cope with missing objects when it excludes promisor objects.

Sami Jawhar reports that the BUG occurs even with no moved ref. The trigger was a CI job that fetched after a depth-2 checkout of a pull request's merge commit.

Jawhar's script builds an origin repository with uploadpack.allowFilter enabled, a main branch and a side branch with two commits, and a no-fast-forward merge. It then reproduces the failing fetch from a shallow clone.

Six messages have been posted in all, with Mark C. Chu-Carroll and Junio Hamano among the participants. The excerpts do not show whether the patch will be extended to cover the reported case.
