diff --git a/.azurepipelines/Windows-EccCheck.yml b/.azurepipelines/Windows-EccCheck.yml index 444a2afcb4662..e36acc8aa4b92 100644 --- a/.azurepipelines/Windows-EccCheck.yml +++ b/.azurepipelines/Windows-EccCheck.yml @@ -36,5 +36,8 @@ steps: displayName: 'check py version' - script: | + git fetch origin $(System.PullRequest.TargetBranch):$(System.PullRequest.TargetBranch) + git checkout $(System.PullRequest.TargetBranch) + git show -2 --unified=0 py -3 BaseTools/Scripts/EccCheck.py -1 displayName: 'Use EccCheck.py to verify patch series in pull request'