Follow Discord
Sweep 23 Oct 2026 · 21:48Z Build v2.1.310 529 read Stable v2.1.308 Latest v2.1.310 Next v2.1.310 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.310 ·

Git commands no longer inherit GIT_TEMPLATE_DIR or ARGV0 in some cases

Claude Code now also removes GIT_TEMPLATE_DIR and ARGV0 from the environment it hands to git, under a specific condition

You'll notice Improvements
JSON All of v2.1.310
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.310,
ImprovementsSection of the release
What

Environment variables are settings passed from your shell to the programs it starts. Before Claude Code runs git, it already removed several of them, including GIT_CONFIG variables, GIT_ALLOW_PROTOCOL, CDPATH, HOME and XDG_CONFIG_HOME. It now also removes GIT_TEMPLATE_DIR and ARGV0 when a particular condition holds.

Why

This is a hardening step. GIT_TEMPLATE_DIR points git at a folder of files to copy into new repositories, and removing it stops a value in the environment from slipping such files in.

See this entry in the whole of v2.1.310 →

Feedback