X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin-describe.c;h=3a007ed1cafcab82f466d355b63e416b06eb8864;hb=f054a419419337142ffe40433aa3984ccc000624;hp=d2cfb1b0837ffd1ab3b1f69e8dee0ffa36f2e1ab;hpb=9b3b7fd8072783e2ec20b3cf622713d39b1c8af4;p=git.git diff --git a/builtin-describe.c b/builtin-describe.c index d2cfb1b08..3a007ed1c 100644 --- a/builtin-describe.c +++ b/builtin-describe.c @@ -158,7 +158,7 @@ static void display_name(struct commit_name *n) n->tag = lookup_tag(n->sha1); 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)) + if (strcmp(n->tag->tag, all ? n->path + 5 : n->path)) warning("tag '%s' is really '%s' here", n->tag->tag, n->path); }