mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
fix: use get_head() in show_undo_hint
This commit is contained in:
parent
ca9ef60ede
commit
2526426da7
1 changed files with 1 additions and 1 deletions
|
@ -1662,7 +1662,7 @@ class Coder:
|
||||||
self.commands.cmd_diff()
|
self.commands.cmd_diff()
|
||||||
|
|
||||||
def show_undo_hint(self, commit_hash):
|
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}.")
|
self.io.tool_output(f"You can use /undo to revert and discard commit {commit_hash}.")
|
||||||
|
|
||||||
def dirty_commit(self):
|
def dirty_commit(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue