Skip to content

Commit ab20fda

Browse files
Benabikgitster
authored andcommitted
Fix t4017-diff-retval for white-space from wc
Signed-off-by: Brian Gernhardt <benji@silverinsanity.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 03e2b63 commit ab20fda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t4017-diff-retval.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ test_expect_success 'check detects leftover conflict markers' '
123123
git --no-pager diff --cached --check >test.out
124124
test $? = 2
125125
) &&
126-
test "$(grep "conflict marker" test.out | wc -l)" = 3 &&
126+
test 3 = $(grep "conflict marker" test.out | wc -l) &&
127127
git reset --hard
128128
'
129129

0 commit comments

Comments
 (0)