{"version":"2.1.277","anchor":"git-helper-functions-accept-an-overridable-env-for-subproces","canonical_anchor":"git-helper-functions-accept-an-overridable-env-for-subproces","heading":"Git helper functions accept an overridable env for subprocess calls","tier":"internal","area":"Git Internals","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.277\/e\/git-helper-functions-accept-an-overridable-env-for-subproces","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.277","markdown":"### Git helper functions accept an overridable env for subprocess calls\n\nInternal git helper functions can now accept a custom environment instead of always using the default\n\n**What**\n\nInternal 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.\n\n**Why**\n\nThis 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.\n\n- Area: Git Internals\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}