Add logging of branches. Throw on merge

This commit is contained in:
Daniel Donenfeld 2019-02-14 15:48:27 -08:00
parent 4b52cd13e1
commit 5afeb81bf9

View File

@ -120,7 +120,11 @@ function collectAsm {
$branchString = $asmBranches -join ' '
git checkout master
git pull
git branch -a
git merge --squash $branchString
if(-not $?){
throw "Failed merge"
}
git diff-index --cached --quiet --exit-code HEAD
if(-not $?) {
git commit -m "[skip ci] Update ASM for $($env:APPVEYOR_REPO_COMMIT)"