mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
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:
parent
d0c729469d
commit
2e53e59cf3
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue