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

Claude Code v2.1.302 ·

Broken git worktree links are treated as "not a git repository"

Claude Code now treats a worktree whose link points nowhere valid as not a git repository, and reads the branch from the right place

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

A git worktree is an extra working folder linked to an existing repository through a small .git file that points back to it. When that link points to something that is no longer a valid repository, git reports "gitfile does not point to a valid repository". Claude Code now treats that the same as "not a git repository".

Working out which branch is checked out now also reads the right data: the contents of the file, instead of the file's details.

Why

Left-over worktrees whose repository has moved or been removed now fail quietly instead of causing errors.

See this entry in the whole of v2.1.302 →

Feedback