Skip to content

Find, verify, and analyze leaked credentials

Fix git tests if run with global commit.gpgsign=true (#4415)

meredith0800255fe0cf
diff --git a/pkg/handlers/handlers_test.go b/pkg/handlers/handlers_test.go
index 3c0b033c4..87908de59 100644
--- a/pkg/handlers/handlers_test.go
+++ b/pkg/handlers/handlers_test.go
@@ -588,6 +588,7 @@ func setupTempGitRepoCommon(t *testing.T, fileName string, fileSize int, isUnsup
cmds := [][]string{
{"git", "-C", tempDir, "config", "user.name", "Test User"},
{"git", "-C", tempDir, "config", "user.email", "[email protected]"},
+ {"git", "-C", tempDir, "config", "commit.gpgsign", "false"},
}
for _, cmdArgs := range cmds {