Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.273 ·

cd-before-git-hook warning now covers any version-control command, not just git

The directory-change safety warning before a version-control command now covers more than just git

TierYou'll noticehow much it should matter to you
Useful2my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaBash Safetywhat it touches
KindImprovementsin v2.1.273,
You'll notice

The directory-change safety warning before a version-control command now covers more than just git

What

Claude Code warns when a compound terminal command changes directory and then runs a version-control tool, because that pattern can pick up untrusted hooks or repository settings from the new directory. This warning previously mentioned git specifically; it now applies its wording generally to any version-control command, not just git.

Why

This ensures the same protection and warning message applies consistently across different version-control tools, not just git.

See this entry in the whole of v2.1.273 →