Skip to content

Commit

Permalink
+3
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Dec 15, 2024
1 parent 0e2ceca commit 0ac3505
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/upstream force tracking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
if (-not $?) { throw "git remote add failed" }
git config --replace-all remote.upstream.fetch '+refs/pull/*:refs/remotes/upstream/pull/*'
if (-not $?) { throw "git config failed" }
git fetch upstream | Out-Null
git fetch upstream 2>&1 | Out-Null
if (-not $?) { throw "git fetch failed" }
$l_open_prs = @()
Expand Down Expand Up @@ -143,9 +143,8 @@ jobs:
Write-Host "Delete force-tracking branch for PR $pr_num"
$l_legacy_ft += "force-tracking/$pr_num"
}
#TODO uncomment
# git push origin --delete $l_legacy_ft
# if (-not $?) { throw "git push failed" }
git push origin --delete $l_legacy_ft
if (-not $?) { throw "git push failed" }
foreach ($pr_num in $l_open_prs) {
$b_upstream = "pull/$pr_num/head"
Expand All @@ -163,6 +162,7 @@ jobs:
}
#TODO comment out
Write-Host "Checkout force-tracking branch for PR $pr_num"
Write-Host git checkout --track $b_r_ft
git checkout --track $b_r_ft
if (-not $?) { throw "git checkout failed" }
Expand Down

0 comments on commit 0ac3505

Please sign in to comment.