Under the hood
Internal git helper functions can now accept a custom environment instead of always using the default
What
Internal helper functions that detect the current git branch and the default remote branch used to always run git with a fixed environment. They now accept an optional environment override that gets passed through to the underlying git call.
Why
This is an internal plumbing change that lets other parts of Claude Code invoke these git lookups with a customized environment when needed, rather than being locked into one fixed setup.