1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00

Use git status --porcelain

to ensure output is always readable no matter what configuration a user has set (cc #268)
This commit is contained in:
jorin 2017-06-30 00:06:14 +02:00 committed by GitHub
parent cf3197eb40
commit 100c931849

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}
}