From 1f4a54cf01aed640bdd6f783da23e8c37703a5c9 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 11 May 2023 09:29:11 -0700 Subject: [PATCH] Fixed a bug where the commit command was not being executed when the repo was dirty. --- aider/coder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/coder.py b/aider/coder.py index 01ddc395e..bad5e4cd5 100755 --- a/aider/coder.py +++ b/aider/coder.py @@ -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