summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--ui-tree.c4
1 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
@@ -75,4 +75,5 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
+ 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>",
@@ -82,2 +83,3 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
}
+ }