You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Bug FixesKind: in v2.1.305,
Bug FixesSection of the release
What
A worktree is a second working copy of your git repository in its own folder. When Claude Code creates one based on the default branch of origin (your main remote repository), it now looks up that branch with git show-ref, which matches only the exact remote branch name, instead of a looser lookup.
Other changes in the same step:
The worktree is created from the commit that branch points to.
If a git command fails, the error now names the actual command that failed.
If fetching the latest copy of the branch fails, Claude Code still reads the copy of the remote branch it already has, instead of requiring the fetch to succeed first.
Why
Worktrees started from origin's default branch are more reliably tied to the right remote branch, and failures are easier to understand.