Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions tests/integration/empty_repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ func TestEmptyRepository(t *testing.T) {
}

// Configure git user
configEmailCmd := exec.Command("git", "config", "user.email", "[email protected]")
configEmailCmd := exec.Command("git", "config", "--local", "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 := 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)
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/git_commit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", "[email protected]"},
{"config", "--local", "user.name", "Test User"},
{"config", "--local", "user.email", "[email protected]"},
}
for _, args := range configCmds {
cmd := exec.Command("git", args...)
Expand Down
Loading