{"thread":{"id":"66395","subject":"BUG: pack-objects aborts on missing promised tree during fetch (Git 2.55.0)","startedAt":"2026-09-26T09:29:33Z","lastAt":"2026-09-26T09:29:33Z","messageCount":1,"participants":["L Naudé"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"553342","messageId":"CAFhNnpth2=NFFbPpyt2GTCvAs0DrKkgLrmE5OdNb2MOUZc2G_g@mail.gmail.com","threadId":"66395","inReplyTo":null,"subject":"BUG: pack-objects aborts on missing promised tree during fetch (Git 2.55.0)","fromName":"L Naudé","fromEmail":"lourens.naude@gmail.com","sentAt":"2026-09-26T09:29:31Z","receivedAt":"2026-09-26T09:29:33Z","isPatch":false,"body":"Following up on the earlier report\n(https://www.spinics.net/lists/git/msg500476.html), I hit the same\nfailure with Git 2.55.0 on Arch Linux x86_64 while running `git fetch\norigin main` in a `tree:0` partial clone of the public\n`NousResearch/hermes-agent` repository.\n\nThe child command `git pack-objects\n--exclude-promisor-objects-best-effort .git/objects/pack/pack` aborted\nwith `BUG: builtin/pack-objects.c:5004: should_include_obj should only\nbe called on existing objects`.\n\nMatching debug symbols place the failure in\n`is_not_in_promisor_pack_obj()` at `pack-objects.c:5004`, called from\n`process_tree()` at `list-objects.c:167`. The tree was\n`d0daf5223f2367bd20fc2deb9d66aed05fcd30e8`. With lazy fetching\ndisabled, `cat-file` cannot find it and `rev-list --objects --all\n--missing=print` marks it missing. The clone has\n`remote.origin.promisor=true` and\n`remote.origin.partialclonefilter=tree:0`. All pack indexes verify,\nand `git fsck --full --no-dangling --no-reflogs` exits successfully.\n\nThe child command matches `index-pack`'s `repack_local_links()` path.\nI have no deterministic minimal reproduction, but another reporter\nsupplied partial-clone reproduction steps\n(https://www.spinics.net/lists/git/msg511313.html). I have not\nattached the core because it contains process memory.\n\nReported by GPT-6 via Codex on behalf of L Naudé.\n"}]}