mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
fix: Find common root for all absolute file names
This commit is contained in:
parent
5e93dcf2cc
commit
8a4409dd05
1 changed files with 1 additions and 5 deletions
|
@ -354,7 +354,7 @@ class Coder:
|
||||||
self.check_added_files()
|
self.check_added_files()
|
||||||
|
|
||||||
if not self.repo:
|
if not self.repo:
|
||||||
self.find_common_root()
|
self.root = utils.find_common_root(self.abs_fnames)
|
||||||
|
|
||||||
if read_only_fnames:
|
if read_only_fnames:
|
||||||
self.abs_read_only_fnames = set()
|
self.abs_read_only_fnames = set()
|
||||||
|
@ -433,10 +433,6 @@ class Coder:
|
||||||
self.io.tool_output(line, bold=bold)
|
self.io.tool_output(line, bold=bold)
|
||||||
bold = False
|
bold = False
|
||||||
|
|
||||||
def find_common_root(self):
|
|
||||||
self.root = utils.find_common_root(self.abs_fnames)
|
|
||||||
self.root = utils.safe_abs_path(self.root)
|
|
||||||
|
|
||||||
def add_rel_fname(self, rel_fname):
|
def add_rel_fname(self, rel_fname):
|
||||||
self.abs_fnames.add(self.abs_root_path(rel_fname))
|
self.abs_fnames.add(self.abs_root_path(rel_fname))
|
||||||
self.check_added_files()
|
self.check_added_files()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue