Merge branch 'main' into chat-history

This commit is contained in:
Paul Gauthier 2023-07-27 22:32:33 -03:00
commit 16dea76691
5 changed files with 55 additions and 12 deletions

View file

@ -746,11 +746,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)