Compare commits

..

3 Commits

Author SHA1 Message Date
PTah 6bff073108 chore(docs): sync repository URLs for kalinamall mirror 2026-06-16 11:41:07 +10:00
PTah 06c6748274 fix(scripts): force-with-lease on mirror push
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 11:40:59 +10:00
PTah eac1e0b59e fix(scripts): Push-Mirror ignores untracked files
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 11:40:15 +10:00
+3 -3
View File
@@ -21,8 +21,8 @@ if ($LASTEXITCODE -ne 0) {
throw "remote not configured: $remote"
}
if ((git status --porcelain)) {
throw 'working tree not clean; commit or stash first'
if ((git status --porcelain -uno)) {
throw 'working tree has uncommitted tracked changes; commit or stash first'
}
$before = (git rev-parse HEAD).Trim()
@@ -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"