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