{"version":"2.1.265","anchor":"symlinked-git-worktree-detection-dotted-git-target-check-a","canonical_anchor":"symlinked-git-worktree-detection-dotted-git-target-check-a","heading":"Symlinked .git worktree detection: dotted-git-target check added","tier":"notice","area":"Git","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265\/e\/symlinked-git-worktree-detection-dotted-git-target-check-a","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265","markdown":"### Symlinked .git worktree detection: dotted-git-target check added\n\nGit repo root detection adds a check for a symlinked .git target before falling back\n\n**What**\n\nWhen 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.\n\n**Why**\n\nThis 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.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}