fix(scripts): Push-Mirror ignores untracked files

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
PTah
2026-06-16 11:40:15 +10:00
parent 36ccfc9471
commit eac1e0b59e
+2 -2
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()