Diffstat (limited to 'ui-tree.c')
| -rw-r--r-- | ui-tree.c | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -29,16 +29,11 @@ static int print_entry(const unsigned char *sha1, const char *base, if (S_ISDIR(mode)) { html("<div class='ls-dir'><a href='"); html_attr(cgit_pageurl(cgit_query_repo, "tree", - fmt("id=%s&path=%s%s/", - sha1_to_hex(sha1), - cgit_query_path ? cgit_query_path : "", - pathname))); + fmt("id=%s", sha1_to_hex(sha1)))); } else { html("<div class='ls-blob'><a href='"); html_attr(cgit_pageurl(cgit_query_repo, "view", - fmt("id=%s&path=%s%s", sha1_to_hex(sha1), - cgit_query_path ? cgit_query_path : "", - pathname))); + fmt("id=%s", sha1_to_hex(sha1)))); } html("'>"); html_txt(name); @@ -51,7 +46,7 @@ static int print_entry(const unsigned char *sha1, const char *base, return 0; } -void cgit_print_tree(const char *hex, char *path) +void cgit_print_tree(const char *hex) { struct tree *tree; unsigned char sha1[20]; @@ -67,7 +62,6 @@ void cgit_print_tree(const char *hex, char *path) } html("<h2>Tree content</h2>\n"); - html_txt(path); html("<table class='list'>\n"); html("<tr>"); html("<th class='left'>Mode</th>"); |