ref-filter: make remote_ref_atom_parser() use refname_atom_parser_internal()
[gitweb.git] / t / t7008-grep-binary.sh
index 1c0946f8441f9c16ecd3176786d5061b4bc50dab..9c9c378119defa7884a21beb27e806ddf1171497 100755 (executable)
@@ -141,7 +141,8 @@ test_expect_success 'grep respects not-binary diff attribute' '
        test_cmp expect actual &&
        echo "b diff" >.gitattributes &&
        echo "b:binQary" >expect &&
-       git grep bin b | nul_to_q >actual &&
+       git grep bin b >actual.raw &&
+       nul_to_q <actual.raw >actual &&
        test_cmp expect actual
 '
 
@@ -160,7 +161,7 @@ test_expect_success 'grep does not honor textconv' '
        test_must_fail git grep Qfile
 '
 
-test_expect_failure 'grep --textconv honors textconv' '
+test_expect_success 'grep --textconv honors textconv' '
        echo "a:binaryQfile" >expect &&
        git grep --textconv Qfile >actual &&
        test_cmp expect actual
@@ -170,7 +171,7 @@ test_expect_success 'grep --no-textconv does not honor textconv' '
        test_must_fail git grep --no-textconv Qfile
 '
 
-test_expect_failure 'grep --textconv blob honors textconv' '
+test_expect_success 'grep --textconv blob honors textconv' '
        echo "HEAD:a:binaryQfile" >expect &&
        git grep --textconv Qfile HEAD:a >actual &&
        test_cmp expect actual