mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
Bugfix reference to self.get_tracked_files, plus test coverage
This commit is contained in:
parent
c6f99c9b66
commit
832259b55b
2 changed files with 33 additions and 2 deletions
|
@ -712,11 +712,11 @@ class Coder:
|
|||
|
||||
# Check if the file is already in the repo
|
||||
if self.repo:
|
||||
tracked_files = set(self.get_tracked_files())
|
||||
tracked_files = set(self.repo.get_tracked_files())
|
||||
relative_fname = self.get_rel_fname(full_path)
|
||||
if relative_fname not in tracked_files and self.io.confirm_ask(f"Add {path} to git?"):
|
||||
if not self.dry_run:
|
||||
self.repo.git.add(full_path)
|
||||
self.repo.repo.git.add(full_path)
|
||||
|
||||
if write_content:
|
||||
self.io.write_text(full_path, write_content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue