chore(ci): use --mirror so GitHub branch deletes propagate #192
Reference in New Issue
Block a user
Delete Branch "chore/mirror-prune-deletes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
One-line workflow change: replace
git push --all --force+git push --tags --forcewithgit push --mirrorso branch + tag deletions on Gitea propagate to the GitHub mirror.Why
Today's branch cleanup surfaced 14 branches that existed on GitHub but had been deleted on Gitea over the past month.
--all --forceupdates and creates refs but never removes ones the source doesn't have, so the mirror drifted forever.--mirror(which is--all --tags --prune --forcerolled into one) makes GitHub a true reflection of Gitea — deletes flow through automatically.No behavior change for normal pushes. First firing after merge will be a no-op since today's manual cleanup already aligned both sides (11 branches each).
Test plan
mirrorjob complete cleanly