Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.317 ·

Git root detection rejects bare repositories and .git folder layouts

Claude Code no longer treats a folder as a git project root when it sits in a bare repository or a gitdir layout, and says so

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

Unclear What Claude Code does with a folder placed in this separate category, instead of treating it as a root, is not stated.

What

Claude Code checks whether the folder it runs in is the top of a git project, meaning a folder tracked by the git version-control tool. Before, any folder with a .git file or folder counted as the root. Now there is an extra check.

  • A folder with a .git entry is classed as "other" rather than "root" when the check finds a bare repository (a git store with no working files) or a gitdir: file layout along the path.
  • A folder with no .git is classed as "other" rather than "absent" when a bare repository is found above it.
  • The not_git_checkout explanation now says the run may be inside a bare repository or a .git folder. Before, it said the .git was missing, could not be opened, or was not a plain file or folder.

Why

This can change which folder Claude Code treats as your project root. If you work inside a bare repository or a .git folder, Claude Code now refuses to treat it as a normal checkout and tells you why.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhat Claude Code does with a folder placed in this separate category, instead of treating it as a root, is not stated.

See this entry in the whole of v2.1.317 →

Feedback