Under the hood
The GIT_* environment variables Claude Code sanitizes before running git changed: config-override vars dropped, namespace/worktree vars added
What
The set of GIT_* environment variables that Claude Code scrubs before running git commands changed:
- Removed:
GIT_CONFIG_COUNT,GIT_CONFIG_PARAMETERS,GIT_CONFIG_GLOBAL,GIT_CONFIG_SYSTEM,GIT_CONFIG - Added:
GIT_NAMESPACE,GIT_IMPLICIT_WORK_TREE
Why
This changes exactly which environment-based ways of redirecting a git command's behavior Claude Code sanitizes against before running it, dropping the config-override variables from the list and adding namespace and work-tree ones instead.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It isn't clear why the config-override variables, previously called out for safety reasons, were removed from this list.