Skip to content

Commit de99a94

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cobra/cmd/golden_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func compareFiles(pathA, pathB string) error {
4646
// Don't execute diff if it can't be found.
4747
return nil
4848
}
49-
diffCmd := exec.Command(diffPath, "-u", pathA, pathB)
49+
diffCmd := exec.Command(diffPath, "-u", "--strip-trailing-cr", pathA, pathB)
5050
diffCmd.Stdout = output
5151
diffCmd.Stderr = output
5252

0 commit comments

Comments
 (0)