You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
GitArea: what it touches
Bug FixesKind: in v2.1.337,
Bug FixesSection of the release
What
A 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:
GIT_GLOB_PATHSPECS
GIT_NOGLOB_PATHSPECS
GIT_ICASE_PATHSPECS
This means any values you have set for them in your shell no longer change which files Claude Code's git commands match.
Why
If 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.