gh-114178: Fix generate_sbom.py for out-of-tree builds (#114179)

This commit is contained in:
Erlend E. Aasland 2024-01-17 17:25:39 +01:00 committed by GitHub
parent 8cf37f244f
commit 7a0ac89b29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,6 +106,7 @@ def filter_gitignored_paths(paths: list[str]) -> list[str]:
# Non-matching files show up as '::<whitespace><path>'
git_check_ignore_proc = subprocess.run(
["git", "check-ignore", "--verbose", "--non-matching", *paths],
cwd=CPYTHON_ROOT_DIR,
check=False,
stdout=subprocess.PIPE,
)