From 02c9c646c11229df83b26e0fe852034b2a34dcf5 Mon Sep 17 00:00:00 2001 From: Avasam Date: Fri, 4 Apr 2025 16:18:56 -0400 Subject: [PATCH] Small improvement of ts_utils.get_gitignore_spec --- lib/ts_utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: