fix: add missing cause argument to GitCommandNotFound exception

This commit is contained in:
Paul Gauthier (aider) 2024-08-31 07:47:19 -07:00
parent 6a2dd41275
commit 653f0c77ef

View file

@ -622,7 +622,7 @@ class TestMain(TestCase):
@patch("git.Repo.init")
def test_main_exit_with_git_command_not_found(self, mock_git_init):
mock_git_init.side_effect = git.exc.GitCommandNotFound("git")
mock_git_init.side_effect = git.exc.GitCommandNotFound("git", "Command 'git' not found")
try:
result = main(["--exit"], input=DummyInput(), output=DummyOutput())