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

Claude Code v2.1.234 ·

Git subprocesses get a more thorough environment scrub

Your shell's git environment variables are scrubbed more thoroughly before Claude Code runs git.

You'll notice Improvements
JSON All of v2.1.234
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
GitArea: what it touches
ImprovementsKind: in v2.1.234,
ImprovementsSection of the release
What

Before running git, Claude Code strips inherited git variables from the environment so your shell's settings cannot change what git does. The matching is now case-insensitive, covering the numbered GIT_CONFIG_KEY_n and GIT_CONFIG_VALUE_n pairs and the fixed list including GIT_DIR, GIT_WORK_TREE and GIT_ALTERNATE_OBJECT_DIRECTORIES.

Details
  • Any inherited variable whose name collides case-insensitively with one Claude Code sets itself is also unset, so a differently-spelled duplicate cannot survive.
Evidence

GIT_ALTERNATE_OBJECT_DIRECTORIES

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

See this entry in the whole of v2.1.234 →

Feedback