mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
fix: Fix cmd_add to use correct GitRepo method
This commit is contained in:
parent
1e8be8a429
commit
69dd55af5d
1 changed files with 1 additions and 1 deletions
|
@ -592,7 +592,7 @@ class Commands:
|
|||
if abs_file_path in self.coder.abs_fnames:
|
||||
self.io.tool_error(f"{matched_file} is already in the chat")
|
||||
elif abs_file_path in self.coder.abs_read_only_fnames:
|
||||
if self.coder.repo and self.coder.repo.is_tracked_file(matched_file):
|
||||
if self.coder.repo and matched_file in self.coder.repo.get_tracked_files():
|
||||
self.coder.abs_read_only_fnames.remove(abs_file_path)
|
||||
self.coder.abs_fnames.add(abs_file_path)
|
||||
self.io.tool_output(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue