From: Junio C Hamano Date: Mon, 15 Dec 2008 08:36:56 +0000 (-0800) Subject: git-show: do not segfault when showing a bad tag X-Git-Tag: v1.6.0.6~9 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d2dadfe890b5da6f65fe061a414b6ec67c5efe9c?hp=d2dadfe890b5da6f65fe061a414b6ec67c5efe9c 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 ---