Only cherry-pick if there are asm diffs

This commit is contained in:
Daniel Donenfeld 2019-02-26 16:47:35 -08:00
parent bcd7b60df7
commit 30092d9f6f

View File

@ -18,10 +18,14 @@ function collectAsm {
throw "Missing branch for job $($_.jobId)"
}
# Use cherry-pick as the asm branches only have a single commit
cmd.exe /c "git cherry-pick origin/$($branchName) --allow-empty 2>&1"
#Only merge in asm if there is any change between the current branch and the final asm branch
cmd.exe /c "git diff --quiet $($branchName)..$($asmFinalBranch)"
if(-not $?){
throw "Failed merge of $($branchName)"
# Use cherry-pick as the asm branches only have a single commit
cmd.exe /c "git cherry-pick origin/$($branchName) --allow-empty 2>&1"
if(-not $?){
throw "Failed merge of $($branchName)"
}
}
}