mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fix git diff invocation by using origin/ branch
This commit is contained in:
parent
30092d9f6f
commit
adffa26f25
@ -19,7 +19,7 @@ function collectAsm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#Only merge in asm if there is any change between the current branch and the final asm branch
|
#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)"
|
cmd.exe /c "git diff --quiet origin/$($branchName)..$($asmFinalBranch)"
|
||||||
if(-not $?){
|
if(-not $?){
|
||||||
# Use cherry-pick as the asm branches only have a single commit
|
# Use cherry-pick as the asm branches only have a single commit
|
||||||
cmd.exe /c "git cherry-pick origin/$($branchName) --allow-empty 2>&1"
|
cmd.exe /c "git cherry-pick origin/$($branchName) --allow-empty 2>&1"
|
||||||
|
Loading…
Reference in New Issue
Block a user