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>
Brian Gernhardt committed
Jun 29, 2008 at 16:49 UTC
ab20fda99236e38edf5d63f964b6b920b494aacb
1 file changed
+1
-1
t/t4017-diff-retval.sh
+1
-1
@@ -123,7 +123,7 @@ test_expect_success 'check detects leftover conflict markers' '
123
git --no-pager diff --cached --check >test.out
124
test $? = 2
125
) &&
126
- test "$(grep "conflict marker" test.out | wc -l)" = 3 &&
126
+ test 3 = $(grep "conflict marker" test.out | wc -l) &&
127
git reset --hard
128
'
129