1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-19 20:57:53 +02:00

Merge pull request #269 from goreleaser/porcelain

Use git status --porcelain
This commit is contained in:
Carlos Alexandro Becker 2017-06-29 19:48:37 -03:00 committed by GitHub
commit 2fa9a035ca

View File

@ -132,7 +132,7 @@ func getSnapshotName(ctx *context.Context, tag, commit string) (string, error) {
}
func validate(ctx *context.Context, commit, tag string) error {
out, err := git("status", "-s")
out, err := git("status", "--porcelain")
if strings.TrimSpace(out) != "" || err != nil {
return ErrDirty{out}
}