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.