Code

Fix git-verify-tag for light-weight tags
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Sun, 9 Oct 2005 23:50:34 +0000 (16:50 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 9 Oct 2005 23:50:34 +0000 (16:50 -0700)
commit5a6850e8aae7c6ef4f22e07cb620eb9325543732
tree22a152fdd75725437083b834db3eb588f42dc0a7
parent8c51242873d63cfaf87fa2e2e407198a6ad2c3d0
Fix git-verify-tag for light-weight tags

It currently exits printing "git-cat-file SHA1: bad file", while
instead we must just abort the verification for light-weight
tags (e.g. referring to commit objects).

[jc: tag objects can tag anything not just commits, so I fixed
 up the original patch slightly.  you should be able to validate
 a signed tag that points at a blob object. ]

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-verify-tag.sh