From 4b52cd13e16ad01b8630792e91a9ea7beb52f5ed Mon Sep 17 00:00:00 2001 From: Daniel Donenfeld Date: Thu, 14 Feb 2019 15:35:22 -0800 Subject: [PATCH] Fix issue with merging asm branches --- asm/scripts/deploy-asm.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asm/scripts/deploy-asm.ps1 b/asm/scripts/deploy-asm.ps1 index 0868acc..1b879c8 100644 --- a/asm/scripts/deploy-asm.ps1 +++ b/asm/scripts/deploy-asm.ps1 @@ -110,7 +110,7 @@ function collectAsm { #collect all branches to merge $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 # $travisBuild = Get-TravisBuild # $travisJobs = @() @@ -119,6 +119,7 @@ function collectAsm { #Merge all branches into master $branchString = $asmBranches -join ' ' git checkout master + git pull git merge --squash $branchString git diff-index --cached --quiet --exit-code HEAD if(-not $?) {