You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
GitArea: what it touches
Bug FixesKind: in v2.1.329,
Bug FixesSection of the release
What
When 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.
It 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.
Why
A 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.