]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
ui-tree: unify with ui-view, use path to select tree/blob
[ps-cgit] / ui-commit.c
index 1d12bbbcaf4a0ab5b7d7fd9c033aa529c099498e..ed5384d74f0b0634325391799908ae1c672fa7f9 100644 (file)
@@ -182,8 +182,7 @@ void cgit_print_commit(const char *hex)
        cgit_print_date(info->committer_date, FMT_LONGDATE);
        html("</td></tr>\n");
        html("<tr><th>tree</th><td colspan='2' class='sha1'><a href='");
-       query = fmt("h=%s&amp;id=%s", sha1_to_hex(commit->object.sha1),
-                   sha1_to_hex(commit->tree->object.sha1));
+       query = fmt("h=%s", sha1_to_hex(commit->object.sha1));
        html_attr(cgit_pageurl(cgit_query_repo, "tree", query));
        htmlf("'>%s</a></td></tr>\n", sha1_to_hex(commit->tree->object.sha1));
        for (p = commit->parents; p ; p = p->next) {