mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
do not autocommit on dryrun
This commit is contained in:
parent
15a0cdd6c9
commit
07ced21325
1 changed files with 2 additions and 2 deletions
|
@ -346,7 +346,7 @@ class Coder:
|
|||
]
|
||||
|
||||
main_sys = self.gpt_prompts.main_system
|
||||
if self.main_model.max_context_tokens > 4*1024:
|
||||
if self.main_model.max_context_tokens > 4 * 1024:
|
||||
main_sys += "\n" + self.gpt_prompts.system_reminder
|
||||
|
||||
messages = [
|
||||
|
@ -388,7 +388,7 @@ class Coder:
|
|||
self.update_cur_messages(content, edited)
|
||||
|
||||
if edited:
|
||||
if self.auto_commits:
|
||||
if self.auto_commits and not self.dry_run:
|
||||
saved_message = self.auto_commit()
|
||||
else:
|
||||
saved_message = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue