{"version":"2.1.337","anchor":"git-env-now-forces-literal-pathspec-handling","canonical_anchor":"git-env-now-forces-literal-pathspec-handling","heading":"Your git path-matching settings no longer affect Claude Code's own git commands","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/git-env-now-forces-literal-pathspec-handling","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Your git path-matching settings no longer affect Claude Code's own git commands\n\nClaude Code now sets GIT_GLOB_PATHSPECS, GIT_NOGLOB_PATHSPECS and GIT_ICASE_PATHSPECS to 0 for its own git commands\n\n**What**\n\nA pathspec is the pattern git uses to decide which files a command applies to. Git lets you change how those patterns match through environment variables. When Claude Code runs git for its own purposes, it now sets these to `0`:\n\n- `GIT_GLOB_PATHSPECS`\n\n- `GIT_NOGLOB_PATHSPECS`\n\n- `GIT_ICASE_PATHSPECS`\n\nThis means any values you have set for them in your shell no longer change which files Claude Code's git commands match.\n\n**Why**\n\nIf your shell or repository sets these variables, Claude Code's git commands could previously match different files than intended. They now behave the same way regardless.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}