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.330 ·

Claude Code no longer assumes main when it cannot find a default branch

When a repository's default branch cannot be found, Claude Code now reports no default branch instead of assuming main

You'll notice Bug Fixes
JSON All of v2.1.330
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.330,
Bug FixesSection of the release
What

In a git repository, the default branch is the main line of work that other branches are compared against. When Claude Code cannot work out which branch that is, it now reports that there is no default branch. Before, it fell back to assuming the branch was called main.

Why

Repositories with no refs/remotes/origin/HEAD and no commonly named branch no longer quietly get main as their base, which could point at a branch that does not exist.

See this entry in the whole of v2.1.330 →

Feedback