summaryrefslogtreecommitdiffabout
path: root/ui-tree.c
Unidiff
Diffstat (limited to 'ui-tree.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-tree.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui-tree.c b/ui-tree.c
index 1d07e70..b00670e 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -57,23 +57,22 @@ void cgit_print_tree(const char *hex, char *path)
57 unsigned char sha1[20]; 57 unsigned char sha1[20];
58 58
59 if (get_sha1_hex(hex, sha1)) { 59 if (get_sha1_hex(hex, sha1)) {
60 cgit_print_error(fmt("Invalid object id: %s", hex)); 60 cgit_print_error(fmt("Invalid object id: %s", hex));
61 return; 61 return;
62 } 62 }
63 tree = parse_tree_indirect(sha1); 63 tree = parse_tree_indirect(sha1);
64 if (!tree) { 64 if (!tree) {
65 cgit_print_error(fmt("Not a tree object: %s", hex)); 65 cgit_print_error(fmt("Not a tree object: %s", hex));
66 return; 66 return;
67 } 67 }
68 68
69 html("<h2>Tree content</h2>\n");
70 html_txt(path); 69 html_txt(path);
71 html("<table class='list'>\n"); 70 html("<table class='list'>\n");
72 html("<tr class='nohover'>"); 71 html("<tr class='nohover'>");
73 html("<th class='left'>Mode</th>"); 72 html("<th class='left'>Mode</th>");
74 html("<th class='left'>Name</th>"); 73 html("<th class='left'>Name</th>");
75 html("<th class='right'>Size</th>"); 74 html("<th class='right'>Size</th>");
76 html("</tr>\n"); 75 html("</tr>\n");
77 read_tree_recursive(tree, "", 0, 1, NULL, print_entry); 76 read_tree_recursive(tree, "", 0, 1, NULL, print_entry);
78 html("</table>\n"); 77 html("</table>\n");
79} 78}