Unidiff1 files changed, 3 insertions, 1 deletions
|
diff --git a/ui-tree.c b/ui-tree.c index 2f052c7..5a2dd3f 100644 --- a/ ui-tree.c+++ b/ ui-tree.c |
|
@@ -73,13 +73,15 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, |
73 | fullpath = fmt("%s%s%s", ctx.qry.path ? ctx.qry.path : "", |
73 | fullpath = fmt("%s%s%s", ctx.qry.path ? ctx.qry.path : "", |
74 | ctx.qry.path ? "/" : "", name); |
74 | ctx.qry.path ? "/" : "", name); |
75 | |
75 | |
| |
76 | if (!S_ISGITLINK(mode)) { |
76 | type = sha1_object_info(sha1, &size); |
77 | type = sha1_object_info(sha1, &size); |
77 | if (type == OBJ_BAD && !S_ISGITLINK(mode)) { |
78 | if (type == OBJ_BAD) { |
78 | htmlf("<tr><td colspan='3'>Bad object: %s %s</td></tr>", |
79 | htmlf("<tr><td colspan='3'>Bad object: %s %s</td></tr>", |
79 | name, |
80 | name, |
80 | sha1_to_hex(sha1)); |
81 | sha1_to_hex(sha1)); |
81 | return 0; |
82 | return 0; |
82 | } |
83 | } |
| |
84 | } |
83 | |
85 | |
84 | html("<tr><td class='ls-mode'>"); |
86 | html("<tr><td class='ls-mode'>"); |
85 | cgit_print_filemode(mode); |
87 | cgit_print_filemode(mode); |
|