Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.248 Home All releases olderv2.1.247 v2.1.250newer
Claude Code v2.1.248

Git runs with a pinned environment and a blocked-flag list

You'll notice
Useful3 Signal2
Git Integration not in their notes

Git now runs under fixed environments that block network protocols unless the operation needs them.

GIT_ALLOW_PROTOCOLGIT_TERMINAL_PROMPT
What

Git commands now run under fixed environment maps rather than ones assembled per call. The restricted map sets GIT_ALLOW_PROTOCOL to none and GIT_TERMINAL_PROMPT to 0 so git cannot fetch over the network or prompt for credentials; a second map allows file:git:http:https:ssh where network access is intended.

Details
  • Both maps point git's config graft at /dev/null (or the platform equivalent) so repo-supplied config cannot take effect.
  • A separate set names git global flags that are rejected during command parsing, including --exec-path, --git-dir, --attr-source and --shallow-file.
  • Invocations pass safe.bareRepository=explicit, so git will not treat a stray directory as a bare repo.
Evidence

safe.bareRepository=explicit

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.248 →