{"version":"2.1.324","anchor":"worktree-git-guard-flags-assigned-value-variable-tricks","canonical_anchor":"worktree-git-guard-flags-assigned-value-variable-tricks","heading":"Shared-checkout git guard blocks another variable trick","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/worktree-git-guard-flags-assigned-value-variable-tricks","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Shared-checkout git guard blocks another variable trick\n\nThe guard on git in shared checkouts now refuses a line that both assigns a variable and sets it in front of a git command\n\n**What**\n\nClaude Code has a guard that checks git commands run in a shared checkout, a working copy other sessions also use. It now refuses one more pattern: a command line that assigns a variable and also sets that same variable in front of a command, on a line that reads an assigned value and names git. The refusal says the command assigns the variable and that it can't be verified.\n\n**Why**\n\nThis closes a way around the guard, so it is harder to slip a git command past it.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}