Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.274 ·

Worktree cleanup git calls now pin an explicit --git-dir

Worktree cleanup git commands now explicitly pin the git directory instead of relying on current folder

TierUnder the hoodhow much it should matter to you
Useful1my rating, 1 to 5
Signal0worth watching, 1 to 5
AreaGit Worktreeswhat it touches
KindImprovementsin v2.1.274,
Under the hood

Worktree cleanup git commands now explicitly pin the git directory instead of relying on current folder

What

The logic that removes or verifies worktrees (used when exiting or cleaning one up) now resolves the git directory up front and passes it explicitly via --git-dir to every subsequent git worktree list and git worktree remove command, instead of letting git discover it based on the current working directory.

Why

This makes worktree cleanup more reliable by pointing git at the correct repository directly, avoiding cases where relying on the current directory could pick the wrong git directory.

See this entry in the whole of v2.1.274 →