Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.329 ·

Git commands no longer retry after a "--worktree cannot be used" error

Claude Code no longer retries a failed git command when git says --worktree cannot be used, since the retry would fail the same way

You'll notice Bug Fixes
JSON All of v2.1.329
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.

See this entry in the whole of v2.1.329 →

Feedback