Skip to content

Commit

Permalink
pkg/diff/run.go: fail if git tree is dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
joelanford committed Dec 6, 2019
1 parent 899400d commit 106bcff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/diff/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func Run(opts Options) (*Diff, error) {
if stat, err := wt.Status(); err != nil {
return nil, fmt.Errorf("failed to get git status: %w", err)
} else if !stat.IsClean() {
return nil, fmt.Errorf("cannot compare with dirty git tree")
return nil, fmt.Errorf("git tree is dirty")
}

origRef, err := repo.Head()
Expand Down

0 comments on commit 106bcff

Please sign in to comment.