From: Jeremy Koritzinsky Date: Tue, 10 Nov 2020 18:55:27 +0000 (-0800) Subject: Use commit parents instead of branch names to evaulate changed paths. (#44474) X-Git-Tag: submit/tizen/20210909.063632~4690 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ec3178abe78263f118bb8e7b66bedfc4de79ecf;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Use commit parents instead of branch names to evaulate changed paths. (#44474) --- diff --git a/eng/pipelines/common/checkout-job.yml b/eng/pipelines/common/checkout-job.yml index 297a4b5..9d7f427 100644 --- a/eng/pipelines/common/checkout-job.yml +++ b/eng/pipelines/common/checkout-job.yml @@ -52,7 +52,9 @@ jobs: parameters: subsetName: ${{ path.subset }} arguments: - - --difftarget origin/$(System.PullRequest.TargetBranch) + # The commit that we're building is always a merge commit that is merging into the target branch. + # So the first parent of the commit is on the target branch and the second parent is on the source branch. + - --difftarget HEAD^1 - --subset ${{ path.subset }} - ${{ if ne(path.include[0], '') }}: - --includepaths '${{ join('+', path.include) }}'