Rsync's --exclude also protects matching paths at the DESTINATION from --delete. The belt-and-suspenders --exclude='gh-mirror/' in the previous fix kept the stray gh-mirror/ subtree alive on GitHub forever. The structural fix (clone into $RUNNER_TEMP) already prevents the recursive self-include, so the exclude is unnecessary and harmful. NOTE comment left in-place so a future maintainer doesn't re-add it.
Merging triggers the next sync, which will finally delete the stray dir from GitHub.
Rsync's `--exclude` also protects matching paths at the DESTINATION from `--delete`. The belt-and-suspenders `--exclude='gh-mirror/'` in the previous fix kept the stray `gh-mirror/` subtree alive on GitHub forever. The structural fix (clone into `$RUNNER_TEMP`) already prevents the recursive self-include, so the exclude is unnecessary and harmful. NOTE comment left in-place so a future maintainer doesn't re-add it.
Merging triggers the next sync, which will finally delete the stray dir from GitHub.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
rsync's --exclude also protects the matching path at the DESTINATION from
--delete. The belt-and-suspenders --exclude='gh-mirror/' I added in the previous
fix prevented the stray gh-mirror/ subtree at the destination from ever being
deleted by --delete, defeating the auto-heal. The structural fix (cloning the
GitHub mirror into $RUNNER_TEMP, outside ./) already prevents the recursive
self-include, so the exclude is unnecessary and harmful. Removed it; left an
explanatory NOTE in the workflow so this isn't re-added.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01TfzV5QvtPDz8LJS3Pu5VLT
claude
merged commit 125802616d into main2026-06-24 21:43:45 -04:00
claude
deleted branch fix/drop-bad-exclude2026-06-24 21:43:45 -04:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Rsync's
--excludealso protects matching paths at the DESTINATION from--delete. The belt-and-suspenders--exclude='gh-mirror/'in the previous fix kept the straygh-mirror/subtree alive on GitHub forever. The structural fix (clone into$RUNNER_TEMP) already prevents the recursive self-include, so the exclude is unnecessary and harmful. NOTE comment left in-place so a future maintainer doesn't re-add it.Merging triggers the next sync, which will finally delete the stray dir from GitHub.
🤖 Generated with Claude Code