fix: Handle empty commit history in cmd_diff

This commit is contained in:
Paul Gauthier 2024-08-10 09:11:16 -07:00 committed by Paul Gauthier (aider)
parent 9d0b3d17bc
commit 8769f31640
3 changed files with 6 additions and 4 deletions

View file

@ -818,7 +818,7 @@ class TestCommands(TestCase):
# Mock repo.get_commit_message to return a canned commit message
with mock.patch.object(
repo, "get_commit_message", return_value="Canned commit message"
coder.repo, "get_commit_message", return_value="Canned commit message"
):
# Run cmd_commit
commands.cmd_commit()