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.