github.com/sergiusens/goreleaser@v0.34.3-0.20171009111917-ae6f7c157c5c/pipeline/git/exec.go (about) 1 package git 2 3 import ( 4 "strings" 5 6 "github.com/goreleaser/goreleaser/internal/git" 7 ) 8 9 func cleanGit(args ...string) (output string, err error) { 10 output, err = git.Run(args...) 11 return strings.Replace(strings.Split(output, "\n")[0], "'", "", -1), err 12 }