1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/pipeline/git/exec.go
Carlos Alexandro Becker d7efa64075
removed duplicated code
2017-08-19 12:47:04 -03:00

13 lines
253 B
Go

package git
import (
"strings"
"github.com/goreleaser/goreleaser/internal/git"
)
func cleanGit(args ...string) (output string, err error) {
output, err = git.Run(args...)
return strings.Replace(strings.Split(output, "\n")[0], "'", "", -1), err
}