mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 12:55:00 +00:00
fix: prevent name modification when using co-authored-by
This commit is contained in:
parent
d5671c2879
commit
48f89f226f
2 changed files with 8 additions and 7 deletions
|
@ -297,8 +297,9 @@ class TestRepo(unittest.TestCase):
|
|||
commit = raw_repo.head.commit
|
||||
self.assertIn("Co-authored-by: aider (gpt-test-combo) <noreply@aider.dev>", commit.message)
|
||||
self.assertEqual(commit.message.splitlines()[0], "Aider combo edit")
|
||||
self.assertEqual(commit.author.name, "Test User (aider)") # Should BE modified
|
||||
self.assertEqual(commit.committer.name, "Test User (aider)") # Should BE modified
|
||||
# When co-authored-by is true, name modification should be disabled
|
||||
self.assertEqual(commit.author.name, "Test User") # Should NOT be modified
|
||||
self.assertEqual(commit.committer.name, "Test User") # Should NOT be modified
|
||||
|
||||
|
||||
def test_commit_without_co_authored_by(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue