mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00
Fixed a bug where the commit command was not being executed when the repo was dirty.
This commit is contained in:
parent
34fac7b4b9
commit
1f4a54cf01
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ class Coder:
|
|||
|
||||
is_commit_command = (inp and inp.startswith('/commit'))
|
||||
|
||||
if self.repo and self.repo.is_dirty() not is_commit_command:
|
||||
if self.repo and self.repo.is_dirty() and not is_commit_command:
|
||||
self.commit(ask=True, which="repo_files")
|
||||
|
||||
# files changed, move cur messages back behind the files messages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue