mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-22 11:15:42 +00:00
Merge 09e062715b into e911e5e03a
This commit is contained in:
commit
f8a27dd8bc
3 changed files with 5 additions and 5 deletions
|
|
@ -261,7 +261,7 @@ class BackupService:
|
|||
processed_count = 0
|
||||
|
||||
try:
|
||||
spec = PathSpec.from_lines("gitwildmatch", pattern_lines)
|
||||
spec = PathSpec.from_lines("gitignore", pattern_lines)
|
||||
|
||||
# Walk through base directories
|
||||
for base_pattern_path, base_real_path in self.base_paths.items():
|
||||
|
|
@ -507,7 +507,7 @@ class BackupService:
|
|||
|
||||
if pattern_lines:
|
||||
from pathspec import PathSpec
|
||||
restore_spec = PathSpec.from_lines("gitwildmatch", pattern_lines)
|
||||
restore_spec = PathSpec.from_lines("gitignore", pattern_lines)
|
||||
|
||||
# Process each file in archive
|
||||
for archive_path in archive_files:
|
||||
|
|
@ -663,7 +663,7 @@ class BackupService:
|
|||
|
||||
if pattern_lines:
|
||||
from pathspec import PathSpec
|
||||
restore_spec = PathSpec.from_lines("gitwildmatch", pattern_lines)
|
||||
restore_spec = PathSpec.from_lines("gitignore", pattern_lines)
|
||||
|
||||
# Process each file in archive
|
||||
for archive_path in archive_files:
|
||||
|
|
|
|||
|
|
@ -502,7 +502,7 @@ def _resolve_ignore_patterns(ignore: str | None, root_abs_path: str) -> Optional
|
|||
if not lines:
|
||||
return None
|
||||
|
||||
return PathSpec.from_lines("gitwildmatch", lines)
|
||||
return PathSpec.from_lines("gitignore", lines)
|
||||
|
||||
|
||||
def _list_directory_children(
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ def _build_ignore_spec(gitignore: str) -> PathSpec | None:
|
|||
]
|
||||
if not lines:
|
||||
return None
|
||||
return PathSpec.from_lines("gitwildmatch", lines)
|
||||
return PathSpec.from_lines("gitignore", lines)
|
||||
|
||||
|
||||
def _find_matching_files(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue