{"version":"2.1.335","anchor":"git-hooks-directory-added-to-protected-paths","canonical_anchor":"git-hooks-directory-added-to-protected-paths","heading":"Paths involving .git\/config now also cover the .git\/hooks folder","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/git-hooks-directory-added-to-protected-paths","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Paths involving .git\/config now also cover the .git\/hooks folder\n\nWhen a path includes .git\/config, Claude Code now also adds the .git\/hooks folder beside it to the same path list\n\n**Unclear.** It is not confirmed that this list blocks edits to the paths on it.\n\n**What**\n\nWhen a path includes .git\/config, Claude Code now adds the .git\/hooks folder next to it to the same list. Git hooks are scripts git runs automatically at certain moments, such as before a commit.\n\nBefore, only the original path was added.\n\n**Why**\n\nThis looks like a protection against changes to git hooks.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}