Merge branch 'jk/cat-file-regression-fix' into maint
[gitweb.git] / t / t1006-cat-file.sh
index df2ae67189184bde3ff0e809d79c7c0bcd84e8b8..1687098355b710850a04769512320930d9b8b27b 100755 (executable)
@@ -216,6 +216,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