fix: Find common root for all absolute file names

This commit is contained in:
Paul Gauthier 2024-08-22 13:58:13 -07:00
parent 5e93dcf2cc
commit 8a4409dd05

View file

@ -354,7 +354,7 @@ class Coder:
self.check_added_files()
if not self.repo:
self.find_common_root()
self.root = utils.find_common_root(self.abs_fnames)
if read_only_fnames:
self.abs_read_only_fnames = set()
@ -433,10 +433,6 @@ class Coder:
self.io.tool_output(line, bold=bold)
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):
self.abs_fnames.add(self.abs_root_path(rel_fname))
self.check_added_files()