Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.334 ·

Default branch detection handles more forms of remote branch names

When finding a repository's default branch, Claude Code now strips refs/remotes/origin/ and remotes/origin/ as well as origin/

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

Claude Code works out a git repository's default branch, usually main or master, from the remote copy called origin. Git can report that branch name in several forms. Claude Code used to remove only a leading origin/. It now also removes these prefixes:

  • refs/remotes/origin/
  • remotes/origin/
Why

Some git setups report the branch in one of the longer forms. There, Claude Code now gets a clean branch name instead of a wrong one.

See this entry in the whole of v2.1.334 →

Feedback