ci/package_checks: Fix issue when running checks against an up-to-date main

**Summary**

Fix an issue where a commit named `''` would be checked instead of no commits when
there are no commits to check.
This commit is contained in:
Silke Hofstra 2024-04-19 22:54:53 +02:00
parent 63b42b437a
commit a108a5314d

View file

@ -115,7 +115,7 @@ class Git:
return self._run(self.root, list(args))
def run_lines(self, *args: str) -> List[str]:
return self.run(*args).split("\n")
return self.run(*args).splitlines()
def changed_files(self, base: str, head: str) -> List[str]:
return self.run_lines('diff', '--name-only', '--diff-filter=AM', base, head)