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

This commit is contained in:
Paul Gauthier 2023-05-11 09:29:11 -07:00
parent 34fac7b4b9
commit 1f4a54cf01

View file

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