Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

Git bare-repository check hardened against planted redirects

Claude Code's check for git folders that redirect elsewhere now rejects more suspicious link targets and flags plantable gitdir redirects

Group of 2 You'll notice Improvements
JSON All of v2.1.333
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
GitArea: what it touches
ImprovementsKind: in v2.1.333,
ImprovementsSection of the release

What

A git repository can contain small files (gitdir and commondir) that point git at a different folder. Claude Code checks these redirects, including for bare repositories (repositories with no working copy of the files). That check is now stricter:

  • gitdir and commondir targets that point into /proc-style system paths are now rejected. The part that follows shortcut links (symlinks) has a new mode that refuses such paths.
  • Windows backslashes in paths are now handled, as is the error raised when a path is too long (ENAMETOOLONG).
  • A new case, commondir_in_git_dir_unseen, is recognised.
  • In some cases where the check used to return false, it now returns a new result, gitdir-redirect-plantable.

Why

These checks make it harder for a repository you open to point git somewhere unexpected through a planted redirect file.

See this entry in the whole of v2.1.333 →

Feedback