diff --git a/internal/git/git.go b/internal/git/git.go index 51cc37cad..c61c549dc 100644 --- a/internal/git/git.go +++ b/internal/git/git.go @@ -18,6 +18,10 @@ func IsRepo() bool { // Run runs a git command and returns its output or errors func Run(args ...string) (string, error) { // TODO: use exex.CommandContext here and refactor. + var extraArgs = []string{ + "-c", "log.showSignature=false", + } + args = append(extraArgs, args...) /* #nosec */ var cmd = exec.Command("git", args...) log.WithField("args", args).Debug("running git") diff --git a/internal/testlib/git.go b/internal/testlib/git.go index 9ad6f02e5..2f83d9151 100644 --- a/internal/testlib/git.go +++ b/internal/testlib/git.go @@ -48,6 +48,7 @@ func fakeGit(args ...string) (string, error) { "-c", "user.name='GoReleaser'", "-c", "user.email='test@goreleaser.github.com'", "-c", "commit.gpgSign=false", + "-c", "log.showSignature=false", } allArgs = append(allArgs, args...) return git.Run(allArgs...)