mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
Do not autocommit after add if autocommit is disabled
This commit is contained in:
parent
e4e14df503
commit
e8c4b3cf81
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ class Commands:
|
|||
self.io.tool_output(f"Added {matched_file} to the chat")
|
||||
added_fnames.append(matched_file)
|
||||
|
||||
if self.coder.repo and git_added:
|
||||
if self.coder.repo and git_added and self.coder.auto_commits:
|
||||
git_added = " ".join(git_added)
|
||||
commit_message = f"aider: Added {git_added}"
|
||||
self.coder.repo.commit(message=commit_message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue