summaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorMatt Clay <mclay@redhat.com>2020-12-03 18:19:03 +0100
committerGitHub <noreply@github.com>2020-12-03 18:19:03 +0100
commit08842cd6bb0fd6ce3f53b2547993413a5eb6bf10 (patch)
tree88db8268f30aa78b7bc31b8b146aa9256537613b /test/lib
parentReplace `exit` with `sys.exit` in Galaxy CLI. (diff)
downloadansible-08842cd6bb0fd6ce3f53b2547993413a5eb6bf10.tar.xz
ansible-08842cd6bb0fd6ce3f53b2547993413a5eb6bf10.zip
Fix Azure Pipelines change detection. (#72824)
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/ansible_test/_internal/ci/azp.py8
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])