{"version":"2.1.277","anchor":"git-env-var-passthrough-now-filters-out-hook-related-config","canonical_anchor":"git-env-var-passthrough-now-filters-out-hook-related-config","heading":"Git env-var passthrough now filters out hook-related config overrides","tier":"internal","area":"Git Internals","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.277\/e\/git-env-var-passthrough-now-filters-out-hook-related-config","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.277","markdown":"### Git env-var passthrough now filters out hook-related config overrides\n\nGit environment passthrough now drops hook-related config overrides before spawning git\n\n**What**\n\nWhen Claude Code builds the environment for a spawned git process, it merges in `GIT_CONFIG_KEY_N`\/`GIT_CONFIG_VALUE_N` pairs pulled from `GIT_CONFIG_COUNT`, but now explicitly drops any key that starts with `hook.` before passing the merged environment through.\n\n**Why**\n\nThis stops git config overrides from being able to set hook-related configuration when Claude Code runs git commands, closing off one way hook behavior could be redirected via environment variables.\n\n- Area: Git Internals\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}