* [PATCH] Paper bag fix git-describe on packed tags
@ 2008-03-03 23:21 Shawn O. Pearce
2008-03-03 23:26 ` Shawn O. Pearce
0 siblings, 1 reply; 2+ messages in thread
From: Shawn O. Pearce @ 2008-03-03 23:21 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
In 212945d ("Teach git-describe to verify annotated tag names")
we tried to access a possibly unparsed tag structure. We must
make sure it was parsed before we try to read its tag name.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
As 212945d is already in master this probably should be
fast-tracked there. Whoops. :-)
builtin-describe.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-describe.c b/builtin-describe.c
index 2f1e7ba..d4204ee 100644
--- a/builtin-describe.c
+++ b/builtin-describe.c
@@ -156,7 +156,7 @@ static void display_name(struct commit_name *n)
{
if (n->prio == 2 && !n->tag) {
n->tag = lookup_tag(n->sha1);
- if (!n->tag || !n->tag->tag)
+ if (!n->tag || parse_tag(n->tag) || !n->tag->tag)
die("annotated tag %s not available", n->path);
if (strcmp(n->tag->tag, n->path))
warning("tag '%s' is really '%s' here", n->tag->tag, n->path);
--
1.5.4.3.509.gf785
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] Paper bag fix git-describe on packed tags
2008-03-03 23:21 [PATCH] Paper bag fix git-describe on packed tags Shawn O. Pearce
@ 2008-03-03 23:26 ` Shawn O. Pearce
0 siblings, 0 replies; 2+ messages in thread
From: Shawn O. Pearce @ 2008-03-03 23:26 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
"Shawn O. Pearce" <spearce@spearce.org> wrote:
> In 212945d ("Teach git-describe to verify annotated tag names")
> we tried to access a possibly unparsed tag structure. We must
> make sure it was parsed before we try to read its tag name.
>
> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
> ---
>
> As 212945d is already in master this probably should be
> fast-tracked there. Whoops. :-)
Hmmph, looks like you already fixed this with
c374b91cf295f437d438a103bfd2cf3fffcce580 ("git-describe: use tags
found in packed-refs correctly").
--
Shawn.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-03 23:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-03 23:21 [PATCH] Paper bag fix git-describe on packed tags Shawn O. Pearce
2008-03-03 23:26 ` Shawn O. Pearce
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.