Skip to content

Commit e5e87ad

Browse files
committed
fix(diff): use arg '--strip-trailing-cr' (spf13#949)
1 parent 80916b3 commit e5e87ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cobra/cmd/golden_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func compareFiles(pathA, pathB string) error {
4444
// Don't execute diff if it can't be found.
4545
return nil
4646
}
47-
diffCmd := exec.Command(diffPath, "-u", pathA, pathB)
47+
diffCmd := exec.Command(diffPath, "-u", "--strip-trailing-cr", pathA, pathB)
4848
diffCmd.Stdout = output
4949
diffCmd.Stderr = output
5050

0 commit comments

Comments
 (0)