This commit is contained in:
2026-08-02 08:58:51 +03:00
parent 099d0ca4d2
commit 935bf9e29d

View File

@@ -71,8 +71,8 @@ if ($branch -ne 'main') {
}
# reconciliere + push conditionat: doar commit-urile de sync se publica automat
& git -C $ProjectRoot remote get-url origin *> $null
if ($LASTEXITCODE -ne 0) {
$remote = & git -C $ProjectRoot remote 2>$null
if ($remote -notcontains 'origin') {
$avertismente += 'fara remote origin: repo doar local (creeaza-l in gitea si adauga remote-ul)'
} else {
& git -C $ProjectRoot fetch origin 2>&1 | Out-Null