{"version":"2.1.334","anchor":"git-config-system-added-to-a-hook-env-pass-through-list","canonical_anchor":"git-config-system-added-to-a-hook-env-pass-through-list","heading":"Sandboxed git commands are pointed at a certificate file through GIT_CONFIG_SYSTEM","tier":"notice","area":"Hooks","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/git-config-system-added-to-a-hook-env-pass-through-list","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Sandboxed git commands are pointed at a certificate file through GIT_CONFIG_SYSTEM\n\nSandboxed commands can now hand git a certificate file through `GIT_CONFIG_SYSTEM`, which is also in a hook environment pass-through list\n\n**Unclear.** It is not clear whether variables on this list are passed through to those processes or removed from them.\n\n**What**\n\nThe sandbox is the restricted environment Claude Code can run shell commands in. When the sandbox supplies a certificate authority file (`commandCaFile`), the shell wrapper now sets `GIT_CONFIG_SYSTEM` so that git in that command uses it. A certificate authority file lists the certificates that secure connections are allowed to trust.\n\n- `commandCaFile` is built only when the sandbox is in use and is empty otherwise.\n\n- If the paths are not safe for the shell to handle, the variable is not set and a warning is logged, saying the command's git is not told of the CA file.\n\n- `GIT_CONFIG_SYSTEM` appears in a list of environment variables handed through to child processes such as hooks, beside `GIT_CONFIG_PARAMETERS`, `TEMP` and `TMP`. It was already in that list in the previous build.\n\n**Why**\n\nGit commands run inside the sandbox can connect over secure connections using custom certificates, which matters on networks that use their own certificate authority.\n\n- Area: Hooks\n- Names: `GIT_CONFIG_SYSTEM`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: both\n- Heads-up: no"}