From 06c67482745022dadfa46df49af9667f337be2a7 Mon Sep 17 00:00:00 2001 From: PTah Date: Tue, 16 Jun 2026 11:40:59 +1000 Subject: [PATCH] fix(scripts): force-with-lease on mirror push Co-authored-by: Cursor --- scripts/Push-Mirror.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Push-Mirror.ps1 b/scripts/Push-Mirror.ps1 index 9aaecca..378edcb 100644 --- a/scripts/Push-Mirror.ps1 +++ b/scripts/Push-Mirror.ps1 @@ -36,6 +36,6 @@ if (-not (git status --porcelain)) { git add -A git commit -m "chore(docs): sync repository URLs for ${Target} mirror" -git push $remote main +git push --force-with-lease $remote main git reset --hard $before Write-Output "pushed $remote with ${Target} URLs; local main reset to $before"