diff --git a/Teste/roa_sync.ps1 b/Teste/roa_sync.ps1 index 7b11db5..1508997 100644 --- a/Teste/roa_sync.ps1 +++ b/Teste/roa_sync.ps1 @@ -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