{"version":"2.1.324","anchor":"worktree-set-up-copies-and-links-go-through-anchored-no-fol","canonical_anchor":"worktree-set-up-copies-and-links-go-through-anchored-no-fol","heading":"Worktree setup refuses to follow symlinks when copying files","tier":"notice","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/worktree-set-up-copies-and-links-go-through-anchored-no-fol","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Worktree setup refuses to follow symlinks when copying files\n\nWhen creating a git worktree outside Windows, Claude Code copies setup files without following symlinks, and skips them if it cannot do so safely\n\n**Unclear.** It is not clear whether this behaviour depends on a server-controlled switch, or what that switch defaults to.\n\n**What**\n\nA git worktree is a second working copy of the same repository. When Claude Code creates one, it copies or links some files the copy needs. On systems other than Windows, it now does this in a way that refuses to follow symlinks (shortcuts that point to another location).\n\nIf the machine cannot refuse symlinks, or one of these operations fails, Claude Code skips the copies and logs a warning that ends with \"Copy them by hand.\"\n\n**Why**\n\nA symlink could otherwise trick worktree setup into writing outside the place it should. The trade-off is that setup files may now not be copied, so check for the warning if a new worktree seems to be missing files.\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}