mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
normalize /add paths
This commit is contained in:
parent
02e9602d36
commit
f266c87e59
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ class Commands:
|
|||
self.coder.repo.git.add(os.path.join(self.coder.root, matched_file))
|
||||
git_added.append(matched_file)
|
||||
|
||||
abs_file_path = os.path.abspath(os.path.join(self.coder.root, matched_file))
|
||||
abs_file_path = str((Path(self.coder.root) / matched_file).resolve())
|
||||
if abs_file_path not in self.coder.abs_fnames:
|
||||
content = self.io.read_text(abs_file_path)
|
||||
if content is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue