Karthik Nayak's patch addresses a side effect of 0e358de64a (fetch: use batched reference updates, 2025-05-19), which made fetch use batched updates both for fetching references and for backfilling tags.

With batching, the fetched references are not committed to disk when tag backfilling starts. In a case such as a shallow fetch, the client then has no references to report in the 'have' section during negotiation. Backfilling does not use a depth limit, so the server can respond by sending all the objects in the repository.

The fix commits the previous batched update before starting a new one for the backfill. The patch is v1 and had drawn no replies in the excerpts.