X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=tag.c;h=26494ca9695fdd2e81952378f64bbc361698117d;hb=d6db01075b65da2b8584a0450619390893aae103;hp=22deb243ad58b2c57fb8652fe2d08c571ee3e781;hpb=bd2c39f58f915af532b488c5bda753314f0db603;p=git.git diff --git a/tag.c b/tag.c index 22deb243..26494ca9 100644 --- a/tag.c +++ b/tag.c @@ -13,6 +13,8 @@ struct tag *lookup_tag(unsigned char *sha1) ret->object.type = tag_type; return ret; } + if (!obj->type) + obj->type = tag_type; if (obj->type != tag_type) { error("Object %s is a %s, not a tree", sha1_to_hex(sha1), obj->type);