{"version":"2.1.329","anchor":"git-worktree-fallback-no-longer-retries-on-worktree-canno","canonical_anchor":"git-worktree-fallback-no-longer-retries-on-worktree-canno","heading":"Git commands no longer retry after a \"--worktree cannot be used\" error","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/git-worktree-fallback-no-longer-retries-on-worktree-canno","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### Git commands no longer retry after a \"--worktree cannot be used\" error\n\nClaude Code no longer retries a failed git command when git says `--worktree` cannot be used, since the retry would fail the same way\n\n**What**\n\nWhen a git command that Claude Code runs for you fails, Claude Code sometimes tries it a second time. Previously it did this for any failure that was not a timeout or a cancellation.\n\nIt now skips that second attempt when git's error output starts with `fatal: --worktree cannot be used`. A worktree is a separate working folder for the same git repository, which Claude Code uses when you start it with `--worktree`. The arguments used for the retry have also changed.\n\n**Why**\n\nA second git call after this particular error would fail in exactly the same way. Skipping it saves a wasted command and gets the error back to you sooner.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}