diff --git a/lib/ts_utils/utils.py b/lib/ts_utils/utils.py index 667b47c6fabd..feca82643769 100644 --- a/lib/ts_utils/utils.py +++ b/lib/ts_utils/utils.py @@ -209,7 +209,7 @@ def allowlists(distribution_name: str) -> list[str]: @cache def get_gitignore_spec() -> pathspec.PathSpec: with open(".gitignore", encoding="UTF-8") as f: - return pathspec.PathSpec.from_lines("gitwildmatch", f.readlines()) + return pathspec.GitIgnoreSpec.from_lines(f) def spec_matches_path(spec: pathspec.PathSpec, path: Path) -> bool: