diff options
author | Matt Clay <mclay@redhat.com> | 2020-12-03 09:19:03 -0800 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2020-12-03 10:11:56 -0800 |
commit | 0b54f3e1ba781d79fdc158488a78f48ab7fddeed (patch) | |
tree | 2fd44cd0e902433535b2117c09ed98fb86f16ef5 /test/lib/ansible_test | |
parent | 82ba44871aa1528c82cab931dafdcdc4d77b094d (diff) | |
download | ansible-0b54f3e1ba781d79fdc158488a78f48ab7fddeed.tar.gz |
[stable-2.9] Fix Azure Pipelines change detection. (#72824)
(cherry picked from commit 08842cd6bb0fd6ce3f53b2547993413a5eb6bf10)
Co-authored-by: Matt Clay <mclay@redhat.com>
Diffstat (limited to 'test/lib/ansible_test')
-rw-r--r-- | test/lib/ansible_test/_internal/ci/azp.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lib/ansible_test/_internal/ci/azp.py b/test/lib/ansible_test/_internal/ci/azp.py index 962e838e7c..f2a9d206cc 100644 --- a/test/lib/ansible_test/_internal/ci/azp.py +++ b/test/lib/ansible_test/_internal/ci/azp.py @@ -208,10 +208,10 @@ class AzurePipelinesChanges: if self.base_commit: self.base_commit = self.git.run_git(['rev-parse', self.base_commit]).strip() - # <rev1>...<rev2> - # Include commits that are reachable from <rev2> but exclude those that are reachable from <rev1>. - # see: https://git-scm.com/docs/gitrevisions - dot_range = '%s..%s' % (self.base_commit, self.commit) + # <commit>...<commit> + # This form is to view the changes on the branch containing and up to the second <commit>, starting at a common ancestor of both <commit>. + # see: https://git-scm.com/docs/git-diff + dot_range = '%s...%s' % (self.base_commit, self.commit) self.paths = sorted(self.git.get_diff_names([dot_range])) self.diff = self.git.get_diff([dot_range]) |