mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
git diff
This commit is contained in:
parent
70b80241f5
commit
c08981d0af
@ -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)}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user