-rw-r--r-- | ui-tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -74,6 +74,7 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, ctx.qry.path ? "/" : "", name); + if (!S_ISGITLINK(mode)) { type = sha1_object_info(sha1, &size); - if (type == OBJ_BAD && !S_ISGITLINK(mode)) { + if (type == OBJ_BAD) { htmlf("<tr><td colspan='3'>Bad object: %s %s</td></tr>", name, @@ -81,4 +82,5 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, return 0; } + } html("<tr><td class='ls-mode'>"); |