|
diff --git a/ui-tree.c b/ui-tree.c index 0ee38f2..75ec9cb 100644 --- a/ ui-tree.c+++ b/ ui-tree.c |
|
@@ -104,6 +104,6 @@ static void print_object(const unsigned char *sha1, char *path, const char *base |
104 | |
104 | |
105 | html(" ("); |
105 | htmlf("blob: %s (", sha1_to_hex(sha1)); |
106 | cgit_plain_link("plain", NULL, NULL, ctx.qry.head, |
106 | cgit_plain_link("plain", NULL, NULL, ctx.qry.head, |
107 | curr_rev, path); |
107 | curr_rev, path); |
108 | htmlf(")<br/>blob: %s\n", sha1_to_hex(sha1)); |
108 | html(")\n"); |
109 | |
109 | |
@@ -227,3 +227,2 @@ static int walk_tree(const unsigned char *sha1, const char *base, int baselen, |
227 | static char buffer[PATH_MAX]; |
227 | static char buffer[PATH_MAX]; |
228 | char *url; |
| |
229 | |
228 | |
@@ -232,8 +231,2 @@ static int walk_tree(const unsigned char *sha1, const char *base, int baselen, |
232 | strcpy(buffer+baselen, pathname); |
231 | strcpy(buffer+baselen, pathname); |
233 | url = cgit_pageurl(ctx.qry.repo, "tree", |
| |
234 | fmt("h=%s&path=%s", curr_rev, buffer)); |
| |
235 | html("/"); |
| |
236 | cgit_tree_link(xstrdup(pathname), NULL, NULL, ctx.qry.head, |
| |
237 | curr_rev, buffer); |
| |
238 | |
| |
239 | if (strcmp(match_path, buffer)) |
232 | if (strcmp(match_path, buffer)) |
@@ -280,6 +273,2 @@ void cgit_print_tree(const char *rev, char *path) |
280 | |
273 | |
281 | html("path: <a href='"); |
| |
282 | html_attr(cgit_pageurl(ctx.qry.repo, "tree", fmt("h=%s", rev))); |
| |
283 | html("'>root</a>"); |
| |
284 | |
| |
285 | if (path == NULL) { |
274 | if (path == NULL) { |
|