aboutsummaryrefslogtreecommitdiff
path: root/describe.c
diff options
context:
space:
mode:
Diffstat (limited to 'describe.c')
-rw-r--r--describe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/describe.c b/describe.c
index 8a9cd5d52..aa3434a4c 100644
--- a/describe.c
+++ b/describe.c
@@ -67,7 +67,7 @@ static int get_name(const char *path, const unsigned char *sha1)
* Otherwise only annotated tags are used.
*/
if (!strncmp(path, "refs/tags/", 10)) {
- if (object->type == tag_type)
+ if (object->type == TYPE_TAG)
prio = 2;
else
prio = 1;