mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
fix: Initialize abs_read_only_fnames after finding common root
This commit is contained in:
parent
064b0d954f
commit
2199b1c74e
1 changed files with 3 additions and 2 deletions
|
@ -245,8 +245,6 @@ class Coder:
|
||||||
self.verbose = verbose
|
self.verbose = verbose
|
||||||
self.abs_fnames = set()
|
self.abs_fnames = set()
|
||||||
self.abs_read_only_fnames = set()
|
self.abs_read_only_fnames = set()
|
||||||
if read_only_fnames:
|
|
||||||
self.abs_read_only_fnames = set(self.abs_root_path(fname) for fname in read_only_fnames)
|
|
||||||
|
|
||||||
if cur_messages:
|
if cur_messages:
|
||||||
self.cur_messages = cur_messages
|
self.cur_messages = cur_messages
|
||||||
|
@ -321,6 +319,9 @@ class Coder:
|
||||||
if not self.repo:
|
if not self.repo:
|
||||||
self.find_common_root()
|
self.find_common_root()
|
||||||
|
|
||||||
|
if read_only_fnames:
|
||||||
|
self.abs_read_only_fnames = set(self.abs_root_path(fname) for fname in read_only_fnames)
|
||||||
|
|
||||||
if map_tokens is None:
|
if map_tokens is None:
|
||||||
use_repo_map = main_model.use_repo_map
|
use_repo_map = main_model.use_repo_map
|
||||||
map_tokens = 1024
|
map_tokens = 1024
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue