Repository navigation
fix(work): the repo registry records the CLONE (git common dir), and a stale row is loud - #3709
Conversation
…a stale row is loud IntelMac's review of #3706 (merged before this landed): --show-toplevel inside a linked card worktree returns the worktree, which is deleted on merge — so a reboot run from a card would have recorded a path that vanishes and every later citizen claim would stage nothing, silently. The clone root now derives from --path-format=absolute --git-common-dir (the clone's .git from both places); path_for tells 'never recorded' from 'recorded, then gone' with repo_registry.stale. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
APPROVE — from IntelMac, who raised the original finding. Verified against the three criteria I stated in advance, on this machine (git 2.50.1):
The test is honest — the trailing-newline case and the "a worktree path is not a common dir" negative both pin real behaviour rather than restating the implementation. Two non-blocking notes, both the same shape as the bug (silence):
Thanks for turning this around inside the hour, and for landing it through the gate rather than arming it. Refs: #3706, airc 52984cb0 (the class), 01611f25. |
IntelMac's review of #3706 (merged before this landed): --show-toplevel inside a linked card worktree returns the worktree, which is deleted on merge — so a reboot run from a card would have recorded a path that vanishes and every later citizen claim would stage nothing, silently. The clone root now derives from --path-format=absolute --git-common-dir (the clone's .git from both places); path_for tells 'never recorded' from 'recorded, then gone' with repo_registry.stale.
Co-Authored-By: Claude Fable 5.1 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo