Skip to content
Permalink
Browse files

fix: parse commit hash of GPG signed commit (#953)

  • Loading branch information...
sublimino authored and caarlos0 committed Feb 6, 2019
1 parent dd692bd commit a6b60ce74b7e1458031e19718af9f06c6fb6d8b7
Showing with 5 additions and 0 deletions.
  1. +4 −0 internal/git/git.go
  2. +1 −0 internal/testlib/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")
@@ -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...)

0 comments on commit a6b60ce

Please sign in to comment.
You can’t perform that action at this time.