From ddb876d2fe937eb344321a5a6de375b2eeee8020 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 25 Oct 2024 09:22:50 -0700 Subject: [PATCH] only glob, not rglob for /read --- aider/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index b07c5dd9a..f890d6693 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -1175,7 +1175,7 @@ class Commands: matches = list(glob.glob(expanded_pattern)) else: # For relative paths and globs, use glob from the root directory - matches = list(Path(self.coder.root).rglob(expanded_pattern)) + matches = list(Path(self.coder.root).glob(expanded_pattern)) if not matches: self.io.tool_error(f"No matches found for: {pattern}")