{"version":"2.1.333","anchor":"git-env-sanitization-behind-bot-protected-tengu-serene-sparr","canonical_anchor":"git-env-sanitization-behind-bot-protected-tengu-serene-sparr","heading":"Git checks skipped when git location settings point at another user's files","tier":"notice","area":"Git","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/git-env-sanitization-behind-bot-protected-tengu-serene-sparr","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Git checks skipped when git location settings point at another user's files\n\nWhen sending a conversation to projects, Claude Code skips reading the working tree if git location variables point at files owned by another user\n\n**What**\n\nWhen sending a conversation to projects, Claude Code reads some git information from your project. Before, git ran with whatever environment it inherited. Now, if any of these environment variables are set and the owning user does not match, Claude Code does not read the working tree (the checked-out project files):\n\n- `GIT_DIR`\n\n- `GIT_WORK_TREE`\n\n- `GIT_COMMON_DIR`\n\nIn that case the output says the files were not checked. This is controlled by a switch on Anthropic's side.\n\n**Why**\n\nThis protects against a git setup that has been pointed at a repository someone else owns, which could otherwise make git do something unexpected. If you see \"not checked\" here, look at whether those variables are set in your shell.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}