1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00
This commit is contained in:
Carlos Alexandro Becker 2017-01-31 11:13:47 -02:00
parent 70b80241f5
commit c08981d0af
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -40,7 +40,7 @@ func (p Pipe) Description() string {
func (p Pipe) Run(ctx *context.Context) error {
cmd := exec.Command("git", "diff-index", "--quiet", "HEAD", "--")
if err := cmd.Run(); err != nil {
bts, _ := exec.Command("git", "diff-index", "HEAD", "--").CombinedOutput()
bts, _ := exec.Command("git", "diff").CombinedOutput()
return ErrDirty{string(bts)}
}