Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v1.0.124 ·

Git Hooks Protection

Entry
JSON All of v1.0.124
EntryKind: in v1.0.124,
ChangesSection of the release

What: Claude Code now protects .git/hooks directories in all git repositories within your workspace, requiring explicit permission before modifying hook scripts.

Details:

  • Scans workspace for all git repositories using .git/HEAD detection
  • Automatically adds .git/hooks and .git/config to protected paths list
  • Prevents unauthorized modification of pre-commit, post-checkout, and other git hooks
  • Complements existing .git/config protection (present since v1.0.86)
  • Evidence: New protection logic in YIA() at lines 363503-363531, filtering .git from recursive scans at line 363462

See this entry in the whole of v1.0.124 →

Feedback