mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
13 lines
253 B
Go
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
|
|
}
|