Fix DeprecationWarning

linkliti committed Mar 26, 2026 at 17:27 UTC 6257f2cb3be883aa2cdfa0ff0f92736b899e4573
3 files changed +5 -5
helpers/backup.py
+3 -3
@@ -268,7 +268,7 @@ class BackupService:
268 processed_count = 0
269
270 try:
271 - spec = PathSpec.from_lines("gitwildmatch", pattern_lines)
271 + spec = PathSpec.from_lines("gitignore", pattern_lines)
272
273 # Walk through base directories
274 for base_pattern_path, base_real_path in self.base_paths.items():
@@ -519,7 +519,7 @@ class BackupService:
519
520 if pattern_lines:
521 from pathspec import PathSpec
522 - restore_spec = PathSpec.from_lines("gitwildmatch", pattern_lines)
522 + restore_spec = PathSpec.from_lines("gitignore", pattern_lines)
523
524 # Process each file in archive
525 for archive_path in archive_files:
@@ -675,7 +675,7 @@ class BackupService:
675
676 if pattern_lines:
677 from pathspec import PathSpec
678 - restore_spec = PathSpec.from_lines("gitwildmatch", pattern_lines)
678 + restore_spec = PathSpec.from_lines("gitignore", pattern_lines)
679
680 # Process each file in archive
681 for archive_path in archive_files:
helpers/file_tree.py
+1 -1
@@ -507,7 +507,7 @@ def _resolve_ignore_patterns(ignore: str | None, root_abs_path: str) -> Optional
507 if not lines:
508 return None
509
510 - return PathSpec.from_lines("gitwildmatch", lines)
510 + return PathSpec.from_lines("gitignore", lines)
511
512
513 def _list_directory_children(
plugins/_promptinclude/helpers/scanner.py
+1 -1
@@ -131,7 +131,7 @@ def _build_ignore_spec(gitignore: str) -> PathSpec | None:
131 ]
132 if not lines:
133 return None
134 - return PathSpec.from_lines("gitwildmatch", lines)
134 + return PathSpec.from_lines("gitignore", lines)
135
136
137 def _find_matching_files(