l10n: de.po: various fixes in German translation
[gitweb.git] / t / t8010-cat-file-filters.sh
index 3d5ad7df982e774d5682ff55ab290a6167c240a7..d8242e467eaa4f0a46cfa0a4ad431a447e58dd6c 100755 (executable)
@@ -51,4 +51,14 @@ test_expect_success '--path=<path> complains without --textconv/--filters' '
        grep "path.*needs.*filters" err
 '
 
+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 <" &&
+       printf "%s hello.txt\n%s hello\n" $sha1 $sha1 |
+       git cat-file --textconv --batch >actual &&
+       printf "%s blob 6\nuryyb\r\n\n%s blob 6\nhello\n\n" \
+               $sha1 $sha1 >expect &&
+       test_cmp expect actual
+'
+
 test_done