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:
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 {
|
||||
out, err := git("status", "-s")
|
||||
out, err := git("status", "--porcelain")
|
||||
if strings.TrimSpace(out) != "" || err != nil {
|
||||
return ErrDirty{out}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user