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.