mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
fix: set cwd to repo root for shell commands in cmd_run
This commit is contained in:
parent
973e86df27
commit
1a745e4fa9
1 changed files with 1 additions and 1 deletions
|
@ -876,7 +876,7 @@ class Commands:
|
|||
def cmd_run(self, args, add_on_nonzero_exit=False):
|
||||
"Run a shell command and optionally add the output to the chat (alias: !)"
|
||||
exit_status, combined_output = run_cmd(
|
||||
args, verbose=self.verbose, error_print=self.io.tool_error
|
||||
args, verbose=self.verbose, error_print=self.io.tool_error, cwd=self.coder.root
|
||||
)
|
||||
|
||||
if combined_output is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue