pretty: add support for separator option in %(trailers)
[gitweb.git] / t / t8010-cat-file-filters.sh
index d8242e467eaa4f0a46cfa0a4ad431a447e58dd6c..31de4b64dc06c1aad760dfc4ad585d11b46a65d8 100755 (executable)
@@ -47,10 +47,15 @@ test_expect_success 'cat-file --textconv --path=<path> works' '
 test_expect_success '--path=<path> complains without --textconv/--filters' '
        sha1=$(git rev-parse -q --verify HEAD:world.txt) &&
        test_must_fail git cat-file --path=hello.txt blob $sha1 >actual 2>err &&
-       test ! -s actual &&
+       test_must_be_empty actual &&
        grep "path.*needs.*filters" err
 '
 
+test_expect_success '--textconv/--filters complain without path' '
+       test_must_fail git cat-file --textconv HEAD &&
+       test_must_fail git cat-file --filters HEAD
+'
+
 test_expect_success 'cat-file --textconv --batch works' '
        sha1=$(git rev-parse -q --verify HEAD:world.txt) &&
        test_config diff.txt.textconv "tr A-Za-z N-ZA-Mn-za-m <" &&