Skip to content
Permalink
Browse files

fix: suppress diffs on git show (#955)

  • Loading branch information...
caarlos0 committed Feb 6, 2019
1 parent a6b60ce commit adcc4524da5e5223faabdc1b3fd78251a6ddae38
Showing with 2 additions and 2 deletions.
  1. +2 −2 internal/pipe/git/git.go
@@ -114,11 +114,11 @@ func validate(ctx *context.Context) error {
}

func getShortCommit() (string, error) {
return git.Clean(git.Run("show", "--format='%h'", "HEAD"))
return git.Clean(git.Run("show", "--format='%h'", "HEAD", "-q"))
}

func getFullCommit() (string, error) {
return git.Clean(git.Run("show", "--format='%H'", "HEAD"))
return git.Clean(git.Run("show", "--format='%H'", "HEAD", "-q"))
}

func getTag() (string, error) {

0 comments on commit adcc452

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