From 20d87e1136725ac5cd9fc4b6cea5bdb85ceab5cc Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 13 Nov 2024 13:22:45 -0800 Subject: [PATCH] refactor: Remove unnecessary .gitignore commit in test setup --- tests/basic/test_commands.py | 2 -- 1 file changed, 2 deletions(-) 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")