mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 03:05:00 +00:00
Merge pull request #2126 from webkonstantin/fix-read-only-from-working-dir
fix: Impossible to /read-only from another working directory
This commit is contained in:
commit
b911ceaa61
2 changed files with 38 additions and 1 deletions
|
@ -1170,7 +1170,7 @@ class Commands:
|
|||
# First collect all expanded paths
|
||||
for pattern in filenames:
|
||||
expanded_pattern = expanduser(pattern)
|
||||
expanded_paths = glob.glob(expanded_pattern, recursive=True)
|
||||
expanded_paths = glob.glob(expanded_pattern, recursive=True, root_dir=self.coder.root)
|
||||
if not expanded_paths:
|
||||
self.io.tool_error(f"No matches found for: {pattern}")
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue