Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.282 ·

Linked worktrees are refused when something is mounted over their .git/worktrees entry

A git worktree whose .git/worktrees entry has another device or mount over it is now refused with foreign_mount

Group of 3 You'll notice Improvements
JSON All of v2.1.282
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
File SyncArea: what it touches
ImprovementsKind: in v2.1.282,
ImprovementsSection of the release

What

Claude 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.

  • 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.
  • The message tells you to unmount it, or start from the repository's main checkout.
  • Uploading from such a worktree is refused the same way.
  • If the git directory changes while it is being read, the check stops with "the git directory changed while it was read".
  • The check also records when the git directory was created.

Why

Whatever 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.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is unclear which feature runs this check first, cloud file capture or starting work in a worktree.

See this entry in the whole of v2.1.282 →

Feedback