Skip to content

Commit

Permalink
fix(diff): use arg '--strip-trailing-cr' (spf13#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed May 11, 2020
1 parent d6fbe86 commit de99a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cobra/cmd/golden_test.go
Expand Up @@ -46,7 +46,7 @@ func compareFiles(pathA, pathB string) error {
// Don't execute diff if it can't be found.
return nil
}
diffCmd := exec.Command(diffPath, "-u", pathA, pathB)
diffCmd := exec.Command(diffPath, "-u", "--strip-trailing-cr", pathA, pathB)
diffCmd.Stdout = output
diffCmd.Stderr = output

Expand Down

0 comments on commit de99a94

Please sign in to comment.