git p4 test: explicitly check p4 wildcard delete
[gitweb.git] / t / t1006-cat-file.sh
index a420742494024e127d4e4233153c7054e077e471..8a1bc5c53281eb6f44c15d68dd0ae737bc0125f3 100755 (executable)
@@ -194,6 +194,12 @@ test_expect_success "--batch-check for an emtpy line" '
     test " missing" = "$(echo | git cat-file --batch-check)"
 '
 
+test_expect_success 'empty --batch-check notices missing object' '
+       echo "$_z40 missing" >expect &&
+       echo "$_z40" | git cat-file --batch-check="" >actual &&
+       test_cmp expect actual
+'
+
 batch_input="$hello_sha1
 $commit_sha1
 $tag_sha1