diff --git a/run_validation.py b/run_validation.py index e8bf87a627a3c7aa9348fe80c457bbce09c4462e..9616d17414aa6a3da1a6d819bc408f6249386bb8 100755 --- a/run_validation.py +++ b/run_validation.py @@ -1024,11 +1024,10 @@ else: ], stdout=sys.stdout, stderr=sys.stderr, check=True, encoding='utf8') # A list of files which changed between the master branch in the main repository and current branch/repository - # running this validator. This is less strict than GitLab "changes" view and really shows just the diff in the - # content and does not take into the account different git histories. It is ".." diff and not GitLab's "..." diff. + # running this validator. # We do not care about renaming files and want to see them as removing and adding. changes = subprocess.run([ - 'git', 'diff', '--name-status', '--no-renames', 'remotes/upstream/master', 'HEAD', + 'git', 'diff', '--name-status', '--no-renames', 'remotes/upstream/master...HEAD', ], stdout=subprocess.PIPE, stderr=sys.stderr, check=True, encoding='utf8').stdout.splitlines() files_changed = []