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 being triggered when the repo was dirty.
This commit is contained in:
parent
0434f71c9f
commit
34fac7b4b9
1 changed files with 3 additions and 1 deletions
|
@ -192,7 +192,9 @@ class Coder:
|
|||
|
||||
self.num_control_c = 0
|
||||
|
||||
if self.repo and self.repo.is_dirty():
|
||||
is_commit_command = (inp and inp.startswith('/commit'))
|
||||
|
||||
if self.repo and self.repo.is_dirty() 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