X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=rev-list.c;h=fdb531caf6db4944f0612258697670eb00bc55ce;hb=2c38fe4c574812601c8338d8db1ba0d2528b5ae4;hp=0c0bdc2fd87cb99aa988f2ed68621aaa1a392013;hpb=454fbbcde3beb5eb36a4554e5b7074f8d501a6f1;p=git.git diff --git a/rev-list.c b/rev-list.c index 0c0bdc2f..fdb531ca 100644 --- a/rev-list.c +++ b/rev-list.c @@ -367,12 +367,12 @@ static struct commit *get_commit_reference(const char *name, unsigned int flags) /* * Tag object? Look what it points to.. */ - if (object->type == tag_type) { + while (object->type == tag_type) { struct tag *tag = (struct tag *) object; object->flags |= flags; if (tag_objects && !(object->flags & UNINTERESTING)) add_pending_object(object, tag->tag); - object = tag->tagged; + object = parse_object(tag->tagged->sha1); } /*