Under the hood
Git environment passthrough now drops hook-related config overrides before spawning git
What
When 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.
Why
This 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.