X-Git-Url: https://git.octo.it/?p=git.git;a=blobdiff_plain;f=describe.c;h=aa3434a4cbfe62563b7621ddd7e72be3adbea1cc;hp=8a9cd5d52c555330c512b977179ab030ccd28861;hb=HEAD;hpb=b642d9ef643371990c0a921836f2a074d48ce1b3 diff --git a/describe.c b/describe.c index 8a9cd5d5..aa3434a4 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;