{"version":"2.1.274","anchor":"bug-fix-bare-git-repo-scrub-used-mismatched-variable-when-f","canonical_anchor":"bug-fix-bare-git-repo-scrub-used-mismatched-variable-when-f","heading":"Bug fix: bare-git-repo scrub used mismatched variable when falling back to a directory check","tier":"internal","area":"Git Security","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.274\/e\/bug-fix-bare-git-repo-scrub-used-mismatched-variable-when-f","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.274","markdown":"### Bug fix: bare-git-repo scrub used mismatched variable when falling back to a directory check\n\nBug fix: bare-git-repo path scrubbing now checks and acts on the same variable\n\n**What**\n\nIn the logic that scrubs file paths for bare git repositories, a fallback directory check was comparing one variable but then acting on a different one, inconsistent with the surrounding code. This has been fixed so the check and the resulting action both use the same path variable.\n\n**Why**\n\nThis fixes a mismatch that could have caused the wrong path to be checked or acted upon during path scrubbing.\n\n- Area: Git Security\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5"}