aider: Changed print statement to show actual repo directory instead of working tree.

# Context:
USER: after Using git repo print the actual repo dir, not the working tree
ASSISTANT: To print the actual repo directory instead of the working tree, you can use the `git rev-parse --git-dir` command. I need to see the relevant code file where you want to implement this change.
^C KeyboardInterrupt
USER: Please note that I shared content of these additional files: aider/coder.py
ASSISTANT: I apologize for the oversight. Here's the change to print the actual repo directory instead of the working tree in the `aider/coder.py` file:

```python
aider/coder.py
<<<<<<< ORIGINAL
        if self.repo:
            self.io.tool("Using git repo:", self.root)
=======
        if self.repo:
            self.io.tool("Using git repo:", self.repo.git_dir)
>>>>>>> UPDATED
```

This change will print the actual repo directory when a suitable git repo is found.
This commit is contained in:
Paul Gauthier 2023-05-17 16:11:40 -07:00
parent d0c729469d
commit 2e53e59cf3

View file

@ -51,7 +51,7 @@ class Coder:
self.set_repo(fnames)
if self.repo:
self.io.tool("Using git repo:", self.root)
self.io.tool("Using git repo:", self.repo.git_dir)
else:
self.io.tool_error("No suitable git repo, will not automatically commit edits.")
self.find_common_root()