# pack-objects fix for missing objects when excluding promisor objects gets a small revision

_Patrick Steinhardt's patch concerns partial clones, where promisor objects must not reference non-promisor objects._

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

The patch's commit message explains the partial-clone background. Promisor objects are those received from the remote, while locally created objects should be stored as non-promisor objects. Because the promisor property is contagious, promisor objects should never reference non-promisor ones. 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 partition. The excerpt ends before the details of the fix.

Junio Hamano noted that the code relies on .fetch_if_missing being set to 0 elsewhere. He asked whether the call to odb_read_object_info_extended() should pass the OBJECT_INFO_SKIP_FETCH_OBJECT bit explicitly for clarity.

Patrick Steinhardt agreed. He said the current code is fine in practice because "--exclude-promisor-objects[-best-effort]" always unsets fetch_if_missing, but adding the flag reads better. He has queued the change locally and will wait a bit longer before sending a new version.
