{"version":"2.1.331","anchor":"worktree-git-calls-now-run-with-a-controlled-env-worktree-r","canonical_anchor":"worktree-git-calls-now-run-with-a-controlled-env-worktree-r","heading":"Listing git worktrees now runs with extra environment settings","tier":"internal","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/worktree-git-calls-now-run-with-a-controlled-env-worktree-r","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Listing git worktrees now runs with extra environment settings\n\nClaude Code now lists git worktrees with its own environment plus extra settings, and worktree removal has an added check that can end it early\n\n**What**\n\nA git worktree is an extra working folder linked to the same repository. When Claude Code lists worktrees, it now passes git its own environment variables plus some extra ones. Environment variables are named settings handed to a program when it starts.\n\nOne path that removes a worktree also has a new check that can finish the removal early.\n\n**Why**\n\nThis may fix worktree listing when git settings inherited from your shell would otherwise get in the way.\n\n- Area: Worktrees\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}