{"version":"2.1.222","anchor":"worktree-cleanup-will-not-chdir-into-a-network-path","canonical_anchor":"worktree-cleanup-will-not-chdir-into-a-network-path","heading":"Worktree cleanup will not chdir into a network path","tier":"notice","area":"Worktrees","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.222\/e\/worktree-cleanup-will-not-chdir-into-a-network-path","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.222","markdown":"### Worktree cleanup will not chdir into a network path\n\nCleaning up a worktree no longer tries to switch into a network drive path, falling back to your home directory.\n\n**What**\n\nThe keep\/restore-cwd path now detects a UNC or network-spelled original working directory and throws instead of changing into it.\n\n**Details**\n\n- The recovery loop falls back to the home directory when the original cwd is network-spelled.\n- The path is screened and never touched.\n\n**Evidence**\n\n`network-spelled original cwd (screened, never touched)`\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 0\/5"}