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.