Follow Discord
Sweep 12 Nov 2026 · 20:38Z Build v2.1.323 540 read Stable v2.1.311 Latest v2.1.322 Next v2.1.323 Feeds RSS JSON llms.txt llms-full.txt Unofficial
Reading a new release v2.1.323 Downloading and diffing · 2/6 0 findings $0.00 so far

Claude Code v2.1.281 ·

git --git-dir and --work-tree removed from the Bash risky-flag table

git's --git-dir and --work-tree left the Bash risky-flag table, and a new helper checks git commands for them instead

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

Unclear The finding does not say whether this changes which git commands ask for your approval.

What

Before running a shell command, Claude Code checks it with a classifier, a set of rules that decides whether the command needs your approval. One of these rules is a table of risky flags for each command. Flags are the options that start with --.

The git entry in that table no longer lists --git-dir or --work-tree. It still lists flags such as --upload-pack, --exec-path and --separate-git-dir. A separate pattern elsewhere still names --git-dir and --work-tree.

Two new helpers were also added:

  • One checks git commands for --git-dir and --work-tree, and handles git rev-parse specially.
  • One reads a command even when it starts with comments.
Why

These two flags point git at a different repository or working folder. They are now handled by a dedicated check rather than by the generic flag table.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtThe finding does not say whether this changes which git commands ask for your approval.
Anthropic's release notes agreeFixed sandbox excludedCommands entries not matching git rev-parse --git-dir, programs named like shell builtins, and commit messages…

See this entry in the whole of v2.1.281 →

Feedback