{"version":"2.1.327","anchor":"git-read-block-check-rewritten-to-return-reasons","canonical_anchor":"git-read-block-check-rewritten-to-return-reasons","heading":"Git commands after a folder change or a write to git's own files get flagged","tier":"notice","area":"Permissions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/git-read-block-check-rewritten-to-return-reasons","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Git commands after a folder change or a write to git's own files get flagged\n\nClaude Code now flags a git command it cannot check safely because it follows a folder change or a write to files like HEAD, config or hooks\n\n**What**\n\nClaude Code checks git commands against its read block, a rule that limits which commands may only read. Before, this check gave a plain yes or no. It now returns a list of reasons, and it covers two more cases:\n\n- Git run after a directory change in the same command line\n\n- Git run after something writes to files git itself reads, such as HEAD, config or hooks\n\nIn these cases Claude Code reports: \"Git after a directory change, or after writes to files git reads (HEAD, config, hooks), cannot be checked against the read block\".\n\n**Why**\n\nThis makes a permission safety check stricter for compound git commands, meaning several commands chained on one line. Changing folder or editing git's own files first can change what a later git command does, so Claude Code no longer treats such a command as safely checkable.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}