Fixed a bug where the commit command was being triggered when the repo was dirty.

This commit is contained in:
Paul Gauthier 2023-05-11 09:28:36 -07:00
parent 0434f71c9f
commit 34fac7b4b9

View file

@ -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