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:
Paul Gauthier 2023-05-11 16:53:19 -07:00
parent be882158e4
commit 46cd8362b6

View file

@ -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}")