Follow Discord
Sweep 04 Dec 2026 · 17:52Z Build v2.1.337 554 read Stable v2.1.332 Latest v2.1.337 Next v2.1.337 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.337 ·

Your git path-matching settings no longer affect Claude Code's own git commands

Claude Code now sets GIT_GLOB_PATHSPECS, GIT_NOGLOB_PATHSPECS and GIT_ICASE_PATHSPECS to 0 for its own git commands

You'll notice Bug Fixes
JSON All of v2.1.337
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.

See this entry in the whole of v2.1.337 →

Feedback