author | Junio C Hamano <gitster@pobox.com> | |
Mon, 3 Mar 2008 17:24:17 +0000 (09:24 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 3 Mar 2008 17:24:17 +0000 (09:24 -0800) | ||
commit | c374b91cf295f437d438a103bfd2cf3fffcce580 | |
tree | 1291826a9ecc1e7b2193413bc0f855b9476b5802 | tree | snapshot |
parent | f3ec549481827b10609a43bf504517a0e8063a12 | commit | diff |
git-describe: use tags found in packed-refs correctly
When your refs are packed, "git-describe" can find the tag that is the
best match without ever parsing the tag itself. But lookup_tag() in
display_name() says "I've never seen it", creates an empty shell, and
returns it. We need to make sure that we actually have parsed the tag
data into it.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When your refs are packed, "git-describe" can find the tag that is the
best match without ever parsing the tag itself. But lookup_tag() in
display_name() says "I've never seen it", creates an empty shell, and
returns it. We need to make sure that we actually have parsed the tag
data into it.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-describe.c | diff | blob | history |