From 2526426da70ba0e01d736b748035f40c1129cb6f Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 9 Aug 2024 19:41:46 -0400 Subject: [PATCH] fix: use get_head() in show_undo_hint --- aider/coders/base_coder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index e7642376a..f0b922ab0 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -1662,7 +1662,7 @@ class Coder: self.commands.cmd_diff() def show_undo_hint(self, commit_hash): - if self.commit_before_message != self.repo.repo.head.commit.hexsha: + if self.commit_before_message != self.repo.get_head(): self.io.tool_output(f"You can use /undo to revert and discard commit {commit_hash}.") def dirty_commit(self):