mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
mach: fix test-tidy to handle missing merge commit (#32551)
This restores the behaviour prior to #32540 where the case where no merge commit being found (which happens on CI in forks because we do a shallow clone) is handled as if no changes where found. Fixes #32550. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
24906e1c21
commit
4803514196
1 changed files with 2 additions and 0 deletions
|
@ -159,6 +159,8 @@ class FileList(object):
|
|||
|
||||
def _git_changed_files(self):
|
||||
file_list = git_changes_since_last_merge(self.directory)
|
||||
if not file_list:
|
||||
return
|
||||
for f in file_list:
|
||||
if not any(os.path.join('.', os.path.dirname(f)).startswith(path) for path in self.excluded):
|
||||
yield os.path.join('.', f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue