{"version":"2.1.140","anchor":"sandbox-bare-repo-scrubbing-preserves-git-and-head","canonical_anchor":"sandbox-bare-repo-scrubbing-preserves-git-and-head","heading":"Sandbox Bare-Repo Scrubbing Preserves .git and HEAD","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.140\/e\/sandbox-bare-repo-scrubbing-preserves-git-and-head","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.140","markdown":"### Sandbox Bare-Repo Scrubbing Preserves `.git` and `HEAD`\n\n**What**\n\nThe sandbox cleanup routine that removes planted bare-repo files now preserves the `HEAD` file and the `.git` directory within those repos during the scrub pass.\n\n**Details**\n\n- Previously all files were deleted recursively without exception.\n- Now `HEAD` and `.git` entries are skipped during the scrub, avoiding corruption of valid git metadata.\n\n**Evidence**\n\n`si1()` function (search for `\"[Sandbox] scrubbed planted bare-repo file\"`)"}