Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.307 ·

Safer copying of nested git repositories when comparing changes

When copying a git repository nested inside your project to compare changes, Claude Code now checks the copy harder and refuses mismatched work trees

You'll notice Improvements
JSON All of v2.1.307
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
ImprovementsKind: in v2.1.307,
ImprovementsSection of the release
What

Sometimes Claude Code finds a git repository nested inside the folder it is working in. To compare that repository's changes, it makes a temporary copy. That copy step now has more checks:

  • It refuses if the repository's working folder (its work tree, the folder git treats as holding the files) is not the folder Claude Code was checking.
  • It reads git's configuration with GIT_DIR pointed at a repository that does not exist and starting from the top of the filesystem, so no surrounding repository's settings are picked up.
  • It runs an extra check on the temporary copy before using it.
  • It creates the temporary folder in a new way.

When a configuration value is rejected, the message now labels it as a "config value of" that setting.

Why

A repository you did not create can carry settings that make git behave unexpectedly. These checks make it safer to compare changes in repositories you may not trust.

See this entry in the whole of v2.1.307 →

Feedback