{"version":"2.1.335","anchor":"git-commands-get-shlvl1","canonical_anchor":"git-commands-get-shlvl1","heading":"Git commands run by Claude Code now get SHLVL set to 1","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/git-commands-get-shlvl1","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Git commands run by Claude Code now get SHLVL set to 1\n\nClaude Code now sets `SHLVL=1` in the environment it gives git commands, next to `GIT_EDITOR=true`\n\n**What**\n\nWhen Claude Code runs git, it adds some environment variables, named values that a program can read when it starts. It now sets `SHLVL` to `1` alongside `GIT_EDITOR=true`, which it already set. `SHLVL` is a variable shells use to count how many shells are nested inside each other.\n\n**Why**\n\nThis is a small change to the environment git runs in. It matters mainly if you have git hooks or scripts that read `SHLVL`.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}