Skip to content

Commit 7a0ac89

Browse files
gh-114178: Fix generate_sbom.py for out-of-tree builds (#114179)
1 parent 8cf37f2 commit 7a0ac89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tools/build/generate_sbom.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def filter_gitignored_paths(paths: list[str]) -> list[str]:
106106
# Non-matching files show up as '::<whitespace><path>'
107107
git_check_ignore_proc = subprocess.run(
108108
["git", "check-ignore", "--verbose", "--non-matching", *paths],
109+
cwd=CPYTHON_ROOT_DIR,
109110
check=False,
110111
stdout=subprocess.PIPE,
111112
)

0 commit comments

Comments
 (0)