author | Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> | |
Sun, 9 Oct 2005 23:50:34 +0000 (16:50 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 9 Oct 2005 23:50:34 +0000 (16:50 -0700) | ||
commit | 5a6850e8aae7c6ef4f22e07cb620eb9325543732 | |
tree | 22a152fdd75725437083b834db3eb588f42dc0a7 | tree | snapshot |
parent | 8c51242873d63cfaf87fa2e2e407198a6ad2c3d0 | commit | diff |
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>
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 | diff | blob | history |