Skip to content

Commit 3567fb5

Browse files
committed
fixup! diff: stop output garbled message in dry run mode
1 parent d2c3000 commit 3567fb5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

t/t4013-diff-various.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -683,11 +683,7 @@ test_expect_success 'diff -I<regex>: ignore all content changes' '
683683
684684
test_diff_no_content_changes () {
685685
git diff $1 --ignore-blank-lines -I".*" >actual &&
686-
test_line_count = 3 actual &&
687-
test_grep "file1" actual &&
688-
test_grep "file2" actual &&
689-
test_grep "file3" actual &&
690-
test_grep ! "diff --git" actual
686+
test_must_be_empty actual
691687
} &&
692688
test_diff_no_content_changes "--raw" &&
693689
test_diff_no_content_changes "--name-only" &&

0 commit comments

Comments
 (0)