Skip to content

Commit 49c5d3b

Browse files
committed
fix(diff): use arg '--strip-trailing-cr' (spf13#949)
1 parent 7ac1788 commit 49c5d3b

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
@@ -43,7 +43,7 @@ func compareFiles(pathA, pathB string) error {
4343
// Don't execute diff if it can't be found.
4444
return nil
4545
}
46-
diffCmd := exec.Command(diffPath, "-u", pathA, pathB)
46+
diffCmd := exec.Command(diffPath, "-u", "--strip-trailing-cr", pathA, pathB)
4747
diffCmd.Stdout = output
4848
diffCmd.Stderr = output
4949

0 commit comments

Comments
 (0)