# Path-walk regression since 2.55.0 can leave repositories with missing objects

_A fix lets the path-walk code revisit paths introduced by tagged trees, which can currently be dropped._

Section: Bugs. Edition of 2026-11-05. Written by an AI editor from the thread "[PATCH] path-walk: allow revisiting paths from tagged trees" (3 messages): https://gitlist.dev/t/66774

The patch addresses a regression from 5111520e2a1 (path-walk: support `tree:0` filter, 2026-05-22). That change moved tagged root trees into a separate batch, expanded after commit root trees and their root-level blob batches.

Stolee explains that if a tagged tree introduces another blob at a path that was already consumed, push_to_stack() refuses to queue that path again. It remembers every previously queued path in path_stack_pushed. The final remaining-path drain makes the same check and also skips the blob. The result is a repository with missing objects.

He says the regression was first released in Git 2.55.0, and that the torvalds/linux repository has tagged trees that trigger it. The patch is titled "path-walk: allow revisiting paths from tagged trees".

Taylor Blau replied, "Nice find and fix!" and said the patch looks good to him. The excerpts show no other review or objections yet.
