author | Junio C Hamano <gitster@pobox.com> | |
Mon, 15 Dec 2008 08:36:56 +0000 (00:36 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 15 Dec 2008 09:29:44 +0000 (01:29 -0800) | ||
commit | d2dadfe890b5da6f65fe061a414b6ec67c5efe9c | |
tree | 494ca607f5ff4dd4135e84b4513567fcb79f4a0d | tree | snapshot |
parent | 544ddb045a4bd49da9ffc1d9da80bdc0d71b2518 | commit | diff |
git-show: do not segfault when showing a bad tag
When a tag points at a bad or nonexistent object, we should diagnose the
breakage and exit. An earlier commit 4f3dcc2 (Fix 'git show' on signed
tag of signed tag of commit, 2008-07-01) lost this check and made it
segfault instead; not good.
This fixes it.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When a tag points at a bad or nonexistent object, we should diagnose the
breakage and exit. An earlier commit 4f3dcc2 (Fix 'git show' on signed
tag of signed tag of commit, 2008-07-01) lost this check and made it
segfault instead; not good.
This fixes it.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-log.c | diff | blob | history | |
t/t7007-show.sh | [new file with mode: 0755] | blob |