mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
only check tracked files if there is a repo
This commit is contained in:
parent
6c2923ff70
commit
fef5a7b917
1 changed files with 3 additions and 2 deletions
|
@ -739,8 +739,9 @@ class Coder:
|
|||
|
||||
def allowed_to_edit(self, path):
|
||||
full_path = self.abs_root_path(path)
|
||||
tracked_files = set(self.repo.get_tracked_files())
|
||||
is_in_repo = path in tracked_files
|
||||
if self.repo:
|
||||
tracked_files = set(self.repo.get_tracked_files())
|
||||
is_in_repo = path in tracked_files
|
||||
|
||||
if full_path in self.abs_fnames:
|
||||
if self.check_for_dirty_commit(path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue