From: Junio C Hamano Date: Thu, 03 Jul 2008 04:23:28 GMT Subject: Re: [PATCH] Fix describe --tags --long so it does not segfault Message-ID: <7vvdzn4mv3.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20080703023245.GA31579@spearce.org> "Shawn O. Pearce" writes: > If we match a lightweight (non-annotated tag) as the name to > output and --long was requested we do not have a tag, nor do > we have a tagged object to display. Instead we must use the > object we were passed as input for the long format display. > > Reported-by: Mark Burton > Backtraced-by: Mikael Magnusson > Signed-off-by: Shawn O. Pearce > --- > > Thanks Mikael, the backtrace really made it easy to figure out > what the breakage was here. Thanks. I'll squash this in and apply to 'maint'. Perhaps 1.5.6.2 after the 4th holiday. diff --git a/t/t6120-describe.sh b/t/t6120-describe.sh index c6be259..2fb672c 100755 --- a/t/t6120-describe.sh +++ b/t/t6120-describe.sh @@ -139,4 +139,6 @@ check_describe "test1-lightweight-*" --tags --match="test1-*" check_describe "test2-lightweight-*" --tags --match="test2-*" +check_describe "test2-lightweight-*" --long --tags --match="test2-*" HEAD^ + test_done