From 0ef897eca36cf725ecdddfb5e31f9fe6abdfe94c Mon Sep 17 00:00:00 2001 From: Versun Date: Mon, 23 Dec 2024 16:29:55 +0800 Subject: [PATCH] feat: add initial commit in test setup This change adds an initial commit to the test setup in the test_git_operations.py file, ensuring that the repository starts from a known state before performing further tests. --- tests/test_git_operations.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_git_operations.py b/tests/test_git_operations.py index 783ba6a..6f11b28 100644 --- a/tests/test_git_operations.py +++ b/tests/test_git_operations.py @@ -408,6 +408,7 @@ def test_get_commit_changes(temp_git_repo): pass # Empty file git_ops.repo.index.add(["test1.txt", "test2.txt", "test3.bin", "test4.txt"]) + git_ops.repo.index.commit("Initial commit") # Make various changes # 1. Modify test1.txt