{"version":"2.1.333","anchor":"git-worktreebare-repo-gate-hardened","canonical_anchor":"git-worktreebare-repo-gate-hardened","heading":"Git bare-repository check hardened against planted redirects","tier":"notice","area":"Git","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/git-worktreebare-repo-gate-hardened","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Git bare-repository check hardened against planted redirects\n\nClaude Code's check for git folders that redirect elsewhere now rejects more suspicious link targets and flags plantable gitdir redirects\n\n**What**\n\nA 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:\n\n- `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.\n\n- Windows backslashes in paths are now handled, as is the error raised when a path is too long (`ENAMETOOLONG`).\n\n- A new case, `commondir_in_git_dir_unseen`, is recognised.\n\n- In some cases where the check used to return false, it now returns a new result, `gitdir-redirect-plantable`.\n\n**Why**\n\nThese checks make it harder for a repository you open to point git somewhere unexpected through a planted redirect file.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}