t6050: show that git cat-file --batch fails with replace objects
[gitweb.git] / t / t6050-replace.sh
index 7d479843522e3b183fdb4d72d86909b53e0edbda..b90dbdcd2baf54f50669d30f51586915ff2b35eb 100755 (executable)
@@ -276,6 +276,11 @@ test_expect_success '-f option bypasses the type check' '
        git replace -f HEAD^ $BLOB
 '
 
+test_expect_failure 'git cat-file --batch works on replace objects' '
+       git replace | grep $PARA3 &&
+       echo $PARA3 | git cat-file --batch
+'
+
 test_expect_success 'replace ref cleanup' '
        test -n "$(git replace)" &&
        git replace -d $(git replace) &&