mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 21:04:59 +00:00
fix: strip whitespace from file paths before resolving in test commands
This commit is contained in:
parent
d75e75190d
commit
eb9a73bdb0
1 changed files with 1 additions and 1 deletions
|
@ -683,7 +683,7 @@ class TestCommands(TestCase):
|
|||
found_file1 = found_file2 = found_file3 = False
|
||||
for line in commands_text:
|
||||
if line.startswith("/add "):
|
||||
path = Path(line[5:]).resolve()
|
||||
path = Path(line[5:].strip()).resolve()
|
||||
if os.path.samefile(str(path), abs_file1):
|
||||
found_file1 = True
|
||||
elif os.path.samefile(str(path), abs_file2):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue