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 ·

Safer check of whether a git branch tracks a remote branch

Claude Code's check for a branch's upstream now rejects names starting with "-" and confirms the current position is a real local branch

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

In git, a branch's upstream is the remote branch it tracks. When Claude Code checks for one, it now:

  • treats a name starting with - as having no upstream, because git could read such a name as an option;
  • confirms the current position (HEAD) points at a local branch under refs/heads/.

Before, it only checked that the git command succeeded and returned something.

Why

A branch name that looks like a command option can no longer be passed to git as one, which closes a way to inject arguments and avoids wrong answers.

See this entry in the whole of v2.1.326 →

Feedback