You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
GitArea: what it touches
ImprovementsKind: in v2.1.333,
ImprovementsSection of the release
Unclear It is not clear when this protection is in effect, since it sits behind server-side flags.
What
A bare repository is a git repository with no normal project files, only git's own data. Claude Code can now pass git the setting safe.bareRepository=explicit through environment variables when it runs git. One path that does this is controlled by a server-side flag, a switch Anthropic controls remotely. A second server-side flag chooses between two versions of related code.
Why
This hardens the git commands Claude Code runs against a booby-trapped bare repository placed inside a project.
Read from
Names in the bundlesafe.bareRepository=explicit
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 doubtIt is not clear when this protection is in effect, since it sits behind server-side flags.