diff --git a/tests/basic/test_commands.py b/tests/basic/test_commands.py index 24ab00546..3c94112db 100644 --- a/tests/basic/test_commands.py +++ b/tests/basic/test_commands.py @@ -1217,8 +1217,6 @@ class TestCommands(TestCase): # Create and commit a .gitignore file gitignore = Path(".gitignore") gitignore.write_text("*.ignored\n") - repo.git.add(".gitignore") - repo.git.commit("-m", "Add .gitignore") # Create a file that matches the gitignore pattern ignored_file = Path("test.ignored")