X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=describe.c;h=324ca8965b9512de59b515cdcc29801022553d1d;hb=ce43697379ad8ffcaf061a4709489728c1dbe911;hp=8e68d5df3303ed75c2fbb9c8b3d1025785a622c7;hpb=f38c2a9c9982950109d0eb0802b9713dfffeb18b;p=git.git diff --git a/describe.c b/describe.c index 8e68d5df3..324ca8965 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 == TYPE_TAG) + if (object->type == OBJ_TAG) prio = 2; else prio = 1;