Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.265 ·

Symlinked .git worktree detection: dotted-git-target check added

Git repo root detection adds a check for a symlinked .git target before falling back

TierYou'll noticehow much it should matter to you
Useful2my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaGitwhat it touches
KindBug Fixesin v2.1.265,
You'll notice

Git repo root detection adds a check for a symlinked .git target before falling back

What

When Claude Code determines the root directory of a Git repository, it now performs an additional check: whether the path formed by joining a candidate directory with .git resolves back to that same directory. If so, that directory is returned as the repo root. This check runs before the existing fallback logic.

Why

This affects how Claude Code identifies the repository root in setups where .git is a symlink, such as certain worktree configurations, changing which directory gets treated as the root in those cases.

See this entry in the whole of v2.1.265 →

Feedback