mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 06:17:58 +00:00
Fix: Deduplication of ignore patterns shuffled patterns, breaking intended semantics
Fixes #1138
This commit is contained in:
1 parent
9755ba596f
commit
b89522f363
1 file changed
+1
-1
@@ -250,7 +250,7 @@ class Project(ToStringMixin):
|
||||
# Set up the pathspec matcher for the ignored paths
|
||||
# for all absolute paths in ignored_paths, convert them to relative paths
|
||||
processed_patterns = []
|
||||
for pattern in set(ignored_patterns):
|
||||
for pattern in ignored_patterns:
|
||||
# Normalize separators (pathspec expects forward slashes)
|
||||
pattern = pattern.replace(os.path.sep, "/")
|
||||
processed_patterns.append(pattern)
|
||||
|
||||
Reference in new issue
Block a user