Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions scripts/sync_after_merge.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,16 @@ try {
git pull
}

Invoke-Step "delete local branch $Branch" {
git branch -d $Branch
git show-ref --verify --quiet "refs/heads/$Branch"
if ($LASTEXITCODE -eq 0) {
Invoke-Step "delete local branch $Branch" {
git branch -d $Branch
}
}
else {
Write-Host ""
Write-Host "== delete local branch $Branch =="
Write-Host "Local branch already deleted. Skipping branch delete."
}

$devCheckScript = Join-Path $PSScriptRoot "dev_check.ps1"
Expand Down
Loading