checkout each asm branch to ensure it is available locally

This commit is contained in:
Daniel Donenfeld 2019-02-15 13:10:34 -08:00
parent 4eaff9d824
commit 9f9b17c870

View File

@ -119,6 +119,8 @@ function collectAsm {
throw "Missing branch for job $($_.jobId)" throw "Missing branch for job $($_.jobId)"
} }
git checkout $branchName 2>&1
#Add origin branch to the branch list #Add origin branch to the branch list
$branchName = "origin/"+$branchName $branchName = "origin/"+$branchName
$asmBranches += $branchName $asmBranches += $branchName
@ -131,7 +133,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 2>&1
git pull git pull
git fetch origin git fetch origin
git branch -a git branch -a