mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fix: use cwd=root when executing shell commands
This commit is contained in:
parent
1f2917681f
commit
973e86df27
1 changed files with 1 additions and 1 deletions
|
@ -2112,7 +2112,7 @@ class Coder:
|
|||
self.io.tool_output(f"Running {command}")
|
||||
# Add the command to input history
|
||||
self.io.add_to_input_history(f"/run {command.strip()}")
|
||||
exit_status, output = run_cmd(command, error_print=self.io.tool_error)
|
||||
exit_status, output = run_cmd(command, error_print=self.io.tool_error, cwd=self.root)
|
||||
if output:
|
||||
accumulated_output += f"Output from {command}\n{output}\n"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue