Christian Couder posted a series fixing what he calls a brown paper bag bug in the protocol v2 "promisor-remote" capability. Matt Cote found it during the NVIDIA hackathon following the Gerrit User Summit 2026.
The client sends a "promisor-remote=..." reply with the ls-refs and bundle-uri commands, but not with fetch. Over file:// or ssh://, one upload-pack process handles every request and remembers the reply from ls-refs, so it works by luck. Servers that handle each request on its own, such as Git over HTTP or JGit (and so Gerrit), never see the reply. It also fails when only object IDs are fetched, because no ls-refs request is made.
Couder's commit message traces the cause to e15a6b2f8b, which changed promisor_remote_reply()'s signature on the assumption that fetch-pack would not need to send a reply. do_fetch_pack_v2() calls it only to mark the accepted remotes.
The first version was a small three-patch series. Couder later wrote that the v2 needs six refactoring patches instead of one. They make write_command_and_capabilities() generic enough to replace send_capabilities() in get_remote_refs() and get_remote_bundle_uri(), and remove send_capabilities(). A new add_promisor_remote_reply() helper is declared in connect.h for use by fetch-pack. The diffstat covers connect.c, fetch-pack.c and fetch-object-info.c, and adds an HTTP test, t5711.
The patches change behaviour in two ways. On the wire, "command=bundle-uri" now comes first, and "promisor-remote" now precedes "object-format". Couder says this is fine because serve.c accepts capabilities and the command line in any order, and JGit doesn't implement bundle-uri. Also, session-id is now sent with ls-refs and bundle-uri requests, which only matters when transfer.advertiseSID is set.
The series also documents in gitprotocol-v2.adoc that, since protocol v2 is stateless, the client should send the reply with each fetch request that asks for a pack. Negotiation-only fetches, such as git fetch --negotiate-only, don't need it. The excerpts show Junio C Hamano as the only other participant, with no detailed review yet.