]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-114178: Fix generate_sbom.py for out-of-tree builds (#114179)
authorErlend E. Aasland <erlend@python.org>
Wed, 17 Jan 2024 16:25:39 +0000 (17:25 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Jan 2024 16:25:39 +0000 (17:25 +0100)
Tools/build/generate_sbom.py

index 282ee20cc402b003ff00056ff407d0b87f429996..317d48fee3a9d4052f44f1f994c0bf59151a4a3d 100644 (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,
     )