Skip to content

Commit

Permalink
+21
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Aug 31, 2024
1 parent 8bea140 commit 398f699
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/upstream pretest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ jobs:
git checkout $b_core_subm_pretest
if (-not $?) { throw "git checkout failed" }
$need_force_push = $false
Write-Host "--- Deleting the latest [trivial] commits:"
while ($true) {
($commit_name = (git log -1 --pretty=format:"%B" HEAD) -join "`n")
Expand All @@ -440,6 +441,11 @@ jobs:
Write-Host "====="
git reset --hard HEAD~1
if (-not $?) { throw "git reset failed" }
$need_force_push = $true
}
if ($need_force_push) {
git push -f
if (-not $?) { throw "git push -f failed" }
}
# expecting fast-forward when possible
Expand Down

0 comments on commit 398f699

Please sign in to comment.