summaryrefslogtreecommitdiff
path: root/t/t1006-cat-file.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-12-05 13:00:11 -0800
committerJunio C Hamano <gitster@pobox.com>2013-12-05 13:00:12 -0800
commitc17fa972d30f56908bed21df79b364ade04fbd20 (patch)
tree3ebbe1e356e49d6ec2df0dcf580e13a7465bc26d /t/t1006-cat-file.sh
parent3979580265bac968c30ce203022d7a8294710909 (diff)
parent4ef8d1dd03d3b8adf81b4b81b2231128e3591f36 (diff)
downloadgit-c17fa972d30f56908bed21df79b364ade04fbd20.tar.gz
Merge branch 'sb/sha1-loose-object-info-check-existence'
"git cat-file --batch-check=ok" did not check the existence of the named object. * sb/sha1-loose-object-info-check-existence: sha1_loose_object_info(): do not return success on missing object
Diffstat (limited to 't/t1006-cat-file.sh')
-rwxr-xr-xt/t1006-cat-file.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t1006-cat-file.sh b/t/t1006-cat-file.sh
index a420742494..8a1bc5c532 100755
--- a/t/t1006-cat-file.sh
+++ b/t/t1006-cat-file.sh
@@ -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