mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
wip: Fixed a bug in find_common_root
method by replacing commonprefix
with commonpath
.
This commit is contained in:
parent
7d1d2d14a6
commit
e33fa4480a
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class Coder:
|
|||
self.show_diffs = show_diffs
|
||||
|
||||
def find_common_root(self):
|
||||
common_prefix = os.path.commonprefix(list(self.fnames))
|
||||
common_prefix = os.path.commonpath(list(self.fnames))
|
||||
self.root = os.path.dirname(common_prefix)
|
||||
self.console.print(f"[red]Common root directory: {self.root}")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue