mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
fix: Add newline to initial commit message
This commit is contained in:
parent
bea713a01f
commit
65526baeef
1 changed files with 3 additions and 2 deletions
|
@ -809,9 +809,9 @@ class TestCommands(TestCase):
|
||||||
# Create and commit a file
|
# Create and commit a file
|
||||||
filename = "test_file.txt"
|
filename = "test_file.txt"
|
||||||
file_path = Path(repo_dir) / filename
|
file_path = Path(repo_dir) / filename
|
||||||
file_path.write_text("Initial content")
|
file_path.write_text("Initial content\n")
|
||||||
repo.git.add(filename)
|
repo.git.add(filename)
|
||||||
repo.git.commit("-m", "Initial commit")
|
repo.git.commit("-m", "Initial commit\n")
|
||||||
|
|
||||||
# Modify the file to make it dirty
|
# Modify the file to make it dirty
|
||||||
file_path.write_text("Modified content")
|
file_path.write_text("Modified content")
|
||||||
|
@ -832,6 +832,7 @@ class TestCommands(TestCase):
|
||||||
diff_output = mock_print.call_args[0][0]
|
diff_output = mock_print.call_args[0][0]
|
||||||
self.assertIn("-Initial content", diff_output)
|
self.assertIn("-Initial content", diff_output)
|
||||||
self.assertIn("+Modified content", diff_output)
|
self.assertIn("+Modified content", diff_output)
|
||||||
|
dump(diff_output)
|
||||||
|
|
||||||
def test_cmd_ask(self):
|
def test_cmd_ask(self):
|
||||||
io = InputOutput(pretty=False, yes=True)
|
io = InputOutput(pretty=False, yes=True)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue