X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/61c3ca978c586c673aec618cb94210657278dda8..80e577c3ef2a73becabff7e9c9c242f317a87de9:/ui-tree.c?ds=inline diff --git a/ui-tree.c b/ui-tree.c index 60f7560..dee8309 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -15,11 +15,11 @@ static int print_entry(const unsigned char *sha1, const char *base, { char *name; enum object_type type; - unsigned long size; + unsigned long size = 0; name = xstrdup(pathname); type = sha1_object_info(sha1, &size); - if (type == OBJ_BAD) { + if (type == OBJ_BAD && !S_ISDIRLNK(mode)) { htmlf("