summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-02-13 23:31:27 -0800
committerJunio C Hamano <gitster@pobox.com>2012-02-13 23:31:27 -0800
commita95750c4e8f78eb89c277abd41f05be58715314f (patch)
tree674f3dca6bd24c1abf98c5d212ea5c5c31c61098 /t
parent801b28a34acc05a4d70643c1905fde71c9d3aee1 (diff)
parent31fd8d72f2eb82c2b6d8d450ee4e13a3925291c3 (diff)
downloadgit-a95750c4e8f78eb89c277abd41f05be58715314f.tar.gz
Merge branch 'jk/maint-tag-show-fixes' into maint
* jk/maint-tag-show-fixes: tag: do not show non-tag contents with "-n" tag: die when listing missing or corrupt objects tag: fix output of "tag -n" when errors occur Conflicts: t/t7004-tag.sh
Diffstat (limited to 't')
-rwxr-xr-xt/t7004-tag.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t7004-tag.sh b/t/t7004-tag.sh
index e93ac73829..4ef79aabc4 100755
--- a/t/t7004-tag.sh
+++ b/t/t7004-tag.sh
@@ -586,6 +586,19 @@ test_expect_success \
test_cmp expect actual
'
+test_expect_success 'annotations for blobs are empty' '
+ blob=$(git hash-object -w --stdin <<-\EOF
+ Blob paragraph 1.
+
+ Blob paragraph 2.
+ EOF
+ ) &&
+ git tag tag-blob $blob &&
+ echo "tag-blob " >expect &&
+ git tag -n1 -l tag-blob >actual &&
+ test_cmp expect actual
+'
+
# trying to verify annotated non-signed tags:
test_expect_success GPG \