Claude Code v2.1.85 ·
Worktree Support for Non-Git VCS
EntryKind: in v2.1.85,
ChangesSection of the release
The --worktree flag now provides a clear error and migration path for non-git repositories: "Configure a WorktreeCreate hook in settings.json to use --worktree with other VCS systems."
Evidence
Worktree hook suggestion (search for "Configure a WorktreeCreate hook")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeFixed --worktree exiting with an error in non-git repositories before the WorktreeCreate hook could run
See this entry in the whole of v2.1.85 →