Fix issue with merging asm branches

This commit is contained in:
Daniel Donenfeld 2019-02-14 15:35:22 -08:00
parent 7f5624662e
commit 4b52cd13e1

View File

@ -110,7 +110,7 @@ function collectAsm {
#collect all branches to merge #collect all branches to merge
$asmBranches = @() $asmBranches = @()
(Get-AppVeyorBuild).build.jobs | Foreach-Object { $asmBranches += "asm/$($env:APPVEYOR_REPO_COMMIT)/appveyor-$($_.jobId)"} (Get-AppVeyorBuild).build.jobs | Foreach-Object { $asmBranches += "origin/asm/$($env:APPVEYOR_REPO_COMMIT)/appveyor-$($_.jobId)"}
#TODO: collect asm from travis #TODO: collect asm from travis
# $travisBuild = Get-TravisBuild # $travisBuild = Get-TravisBuild
# $travisJobs = @() # $travisJobs = @()
@ -119,6 +119,7 @@ function collectAsm {
#Merge all branches into master #Merge all branches into master
$branchString = $asmBranches -join ' ' $branchString = $asmBranches -join ' '
git checkout master git checkout master
git pull
git merge --squash $branchString git merge --squash $branchString
git diff-index --cached --quiet --exit-code HEAD git diff-index --cached --quiet --exit-code HEAD
if(-not $?) { if(-not $?) {