{"version":"2.1.333","anchor":"worktree-detection-requires-commondir-file","canonical_anchor":"worktree-detection-requires-commondir-file","heading":"Git worktree detection now also looks for a commondir file","tier":"internal","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/worktree-detection-requires-commondir-file","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Git worktree detection now also looks for a commondir file\n\nClaude Code now treats a git folder as complete only if it has a commondir file as well as a config.worktree file\n\n**What**\n\nA git worktree is an extra working folder linked to the same git repository, so you can have more than one copy of a project open at once. When Claude Code checks whether a git folder is complete, it used to look only for a `config.worktree` file. It now also requires a `commondir` file.\n\n**Why**\n\nThe check is stricter. A folder that has `config.worktree` but no `commondir` no longer passes it.\n\n- Area: Git\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}