From 66f53db9272815c4d6ad7b19f0f317eceb3e40fc Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 18 May 2024 19:17:56 -0700 Subject: [PATCH] Fixed a bug where the method was checking the wrong object for dirtiness. --- aider/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index 74bb6263d..8e8ab25e8 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -178,7 +178,7 @@ class Commands: self.coder.abs_fnames.add(abs_file_path) self.coder.run(errors) - if self.repo.is_dirty(): + if self.coder.repo.is_dirty(): self.cmd_commit("") def cmd_clear(self, args):