Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.326 ·

Branch detection fixed when you are not on a branch

Claude Code now detects detached HEAD and branch names starting with a dash correctly when it looks up your Git branch

You'll notice Bug Fixes
JSON All of v2.1.326
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
GitArea: what it touches
Bug FixesKind: in v2.1.326,
Bug FixesSection of the release
What

When Claude Code reads which Git branch you are on, it now handles two cases correctly:

  • The branch name is "HEAD". This happens in a "detached HEAD" state, where you have checked out a specific commit rather than a branch.
  • The branch name starts with "-".

The old check looked at the wrong value, so the detached case was not caught.

Why

The branch lookup now works when you are not on a branch. It also guards against a branch name that starts with a dash, which Git could otherwise read as an option.

See this entry in the whole of v2.1.326 →

Feedback