diff --git a/tests/integration/empty_repo_test.go b/tests/integration/empty_repo_test.go index cf2774f..259c7b1 100644 --- a/tests/integration/empty_repo_test.go +++ b/tests/integration/empty_repo_test.go @@ -21,13 +21,13 @@ func TestEmptyRepository(t *testing.T) { } // Configure git user - configEmailCmd := exec.Command("git", "config", "user.email", "test@test.com") + configEmailCmd := exec.Command("git", "config", "--local", "user.email", "test@test.com") configEmailCmd.Dir = tmpDir if err := configEmailCmd.Run(); err != nil { t.Fatalf("Failed to configure git user.email: %v", err) } - configNameCmd := exec.Command("git", "config", "user.name", "Test User") + configNameCmd := exec.Command("git", "config", "--local", "user.name", "Test User") configNameCmd.Dir = tmpDir if err := configNameCmd.Run(); err != nil { t.Fatalf("Failed to configure git user.name: %v", err) diff --git a/tests/integration/git_commit_test.go b/tests/integration/git_commit_test.go index 56430c5..4218e34 100644 --- a/tests/integration/git_commit_test.go +++ b/tests/integration/git_commit_test.go @@ -28,8 +28,8 @@ func setupTestRepo(t *testing.T) string { // Configure Git user (required for commits) configCmds := [][]string{ - {"config", "user.name", "Test User"}, - {"config", "user.email", "test@example.com"}, + {"config", "--local", "user.name", "Test User"}, + {"config", "--local", "user.email", "test@example.com"}, } for _, args := range configCmds { cmd := exec.Command("git", args...)