diff --git a/asm/scripts/deploy-asm.ps1 b/asm/scripts/deploy-asm.ps1 index 32ac8f4..5fca9aa 100644 --- a/asm/scripts/deploy-asm.ps1 +++ b/asm/scripts/deploy-asm.ps1 @@ -119,6 +119,8 @@ function collectAsm { throw "Missing branch for job $($_.jobId)" } + git checkout $branchName 2>&1 + #Add origin branch to the branch list $branchName = "origin/"+$branchName $asmBranches += $branchName @@ -131,7 +133,7 @@ function collectAsm { #Merge all branches into master $branchString = $asmBranches -join ' ' - git checkout master + git checkout master 2>&1 git pull git fetch origin git branch -a