Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.301 ·

Better handling of git repositories with no commits yet

When a git command fails on a branch with no commits yet, Claude Code now treats the branch as having an empty list instead of no answer

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

When a git command fails, Claude Code now checks which branch is current (with git symbolic-ref) and whether it actually exists (with git show-ref --exists). A commit is a saved snapshot of the project. If the branch has no commits yet, the result is now an empty list rather than no answer at all.

Before, this case returned an empty list only when a separate check agreed, and otherwise returned nothing.

Why

This is a small robustness fix for freshly created repositories that have not had their first commit yet.

See this entry in the whole of v2.1.301 →

Feedback