mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
make reference to repo conditional
This commit is contained in:
parent
8f26c27921
commit
f45bcbf8eb
1 changed files with 2 additions and 1 deletions
|
@ -726,7 +726,8 @@ class Coder:
|
|||
|
||||
def allowed_to_edit(self, path):
|
||||
full_path = self.abs_root_path(path)
|
||||
is_in_repo = self.repo.path_in_repo(path)
|
||||
if self.repo:
|
||||
is_in_repo = self.repo.path_in_repo(path)
|
||||
|
||||
if full_path in self.abs_fnames:
|
||||
self.check_for_dirty_commit(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue