ui-refs: avoid SEGFAULT on lightweight tags

Signed-off-by: Robin Redeker <elmex@ta-sa.org>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
这个提交包含在:
Robin Redeker 2009-01-10 12:44:08 +01:00 提交者 Lars Hjemli
父节点 25f6a1f4c2
当前提交 5164be3277
共有 1 个文件被更改,包括 1 次插入1 次删除

查看文件

@ -141,7 +141,7 @@ static int print_tag(struct refinfo *ref)
html("<tr><td>");
html_txt(name);
html("</td><td>");
if (ctx.repo->snapshots && (tag->tagged->type == OBJ_COMMIT))
if (ctx.repo->snapshots && (ref->object->type == OBJ_COMMIT))
print_tag_downloads(ctx.repo, name);
else
cgit_object_link(ref->object);