mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00
aider: Replaced "_" with the current working directory in find_common_root.
# Context: USER: in find_common_root replace _ with the cwd ASSISTANT: ```python aider/coder.py <<<<<<< ORIGINAL if not self.abs_fnames: self.root = _ ======= if not self.abs_fnames: self.root = os.getcwd() >>>>>>> UPDATED ```
This commit is contained in:
parent
be882158e4
commit
46cd8362b6
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,8 @@ class Coder:
|
|||
self.show_diffs = show_diffs
|
||||
|
||||
def find_common_root(self):
|
||||
if not self.abs_fnames:
|
||||
self.root = os.getcwd()
|
||||
common_prefix = os.path.commonpath(list(self.abs_fnames))
|
||||
self.root = os.path.dirname(common_prefix)
|
||||
self.console.print(f"[bright_black]Common root directory: {self.root}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue