mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +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:
parent
cf3197eb40
commit
100c931849
@ -132,7 +132,7 @@ func getSnapshotName(ctx *context.Context, tag, commit string) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func validate(ctx *context.Context, commit, tag 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 {
|
if strings.TrimSpace(out) != "" || err != nil {
|
||||||
return ErrDirty{out}
|
return ErrDirty{out}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user