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.251 Home All releases olderv2.1.250
Claude Code v2.1.251

Git commands run with sanitized SSH and protocol environment

You'll notice
Useful3 Signal3
Git not in their notes

Git runs with strict host-key checking and risky protocols disabled, no matter your environment.

GIT_SSH_COMMANDGIT_ALLOW_PROTOCOL
What

Git operations Claude Code runs now rewrite inherited environment variables before invoking git: GIT_SSH_COMMAND and GIT_SSH are forced into batch mode with strict host-key checking, and GIT_ALLOW_PROTOCOL is rebuilt as explicit -c protocol.X.allow=never flags. Git also refuses to run when the working directory path cannot be expressed in git's path-separated discovery ceiling.

Details
  • Applies to every git invocation built through this helper; there is no setting to opt out.
  • The refusal message explains that git's discovery ceiling is a separator-delimited list that cannot express the path.
Evidence

git's discovery ceiling (a "${l}"-separated list) cannot express

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.251 →