Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions tests/integration/empty_repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,17 @@ func TestEmptyRepository(t *testing.T) {
}

// Configure git user
exec.Command("git", "config", "user.email", "[email protected]").Run()
exec.Command("git", "config", "user.name", "Test User").Run()
configEmailCmd := exec.Command("git", "config", "user.email", "[email protected]")
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.Dir = tmpDir
if err := configNameCmd.Run(); err != nil {
t.Fatalf("Failed to configure git user.name: %v", err)
}

// Create a test file
testFile := filepath.Join(tmpDir, "test.txt")
Expand Down
Loading