{"version":"2.1.282","anchor":"worktree-validation-rejects-an-administrative-directory-with","canonical_anchor":"worktree-validation-rejects-an-administrative-directory-with","heading":"Linked worktrees are refused when something is mounted over their .git\/worktrees entry","tier":"notice","area":"File Sync","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282\/e\/worktree-validation-rejects-an-administrative-directory-with","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282","markdown":"### Linked worktrees are refused when something is mounted over their .git\/worktrees entry\n\nA git worktree whose .git\/worktrees entry has another device or mount over it is now refused with foreign_mount\n\n**Unclear.** It is unclear which feature runs this check first, cloud file capture or starting work in a worktree.\n\n**What**\n\nClaude Code now refuses a linked git worktree (an extra checkout of the same repository in another folder) when something is mounted over its administrative entry in `.git\/worktrees\/<name>`, with the reason `foreign_mount`. A mount here means another disk or, on Linux, another mounted filesystem placed over that folder.\n\n- The check compares devices and, on Linux, mount ids read from `\/proc\/self\/fdinfo`, resolving bind mounts through `\/proc\/self\/mountinfo`. If mount ids cannot be read, it logs that it is comparing by device alone.\n\n- The message tells you to unmount it, or start from the repository's main checkout.\n\n- Uploading from such a worktree is refused the same way.\n\n- If the git directory changes while it is being read, the check stops with \"the git directory changed while it was read\".\n\n- The check also records when the git directory was created.\n\n**Why**\n\nWhatever is mounted there is not the repository's own record, so trusting it could mean acting on someone else's metadata. Worktrees set up under a bind mount, as in some container setups, may now be refused where they were accepted before.\n\n- Area: File Sync\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5"}