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 safety check now refuses commands that set ARGV0, with its own message

Claude Code's git write protection now refuses a command that sets ARGV0 and explains that it changes the name git is started under

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

Claude Code checks git commands before running them, to protect against git writing where it should not. ARGV0 is an environment variable, a named value passed to a program when it starts, and it changes the name a program is started under.

When a git command sets ARGV0, the check now refuses it with a specific message. The message says that ARGV0 changes the name git is started under, so the git subcommand that would run cannot be verified. Before, such a command only got a general message about environment settings Claude Code could not inspect.

Why

If git could be started under a different name, Claude Code could not be sure which git action was actually going to run. Refusing these commands closes a way around the git write protection, and the new message tells you exactly why the command was stopped.

See this entry in the whole of v2.1.310 →

Feedback