mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
make sure newly created files don't just get committed
This commit is contained in:
parent
83f084a800
commit
93795c085a
1 changed files with 2 additions and 1 deletions
|
@ -382,8 +382,9 @@ class TestCoder(unittest.TestCase):
|
|||
|
||||
self.assertTrue(fname.exists())
|
||||
|
||||
# make sure it was not committed
|
||||
with self.assertRaises(git.exc.GitCommandError):
|
||||
repo.iter_commits(repo.active_branch.name)
|
||||
list(repo.iter_commits(repo.active_branch.name))
|
||||
|
||||
def mock_send(*args, **kwargs):
|
||||
coder.partial_response_content = f"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue