]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
cgit.c: fix whitespace breakage
[ps-cgit] / ui-commit.c
index b3d1c28c2c188b7a2357058582cf9db8095348ed..20a7cb2259d978c72dab0084c1f4dd091c857176 100644 (file)
@@ -186,7 +186,8 @@ void cgit_print_commit(const char *hex)
        cgit_print_date(info->committer_date);
        html("</td></tr>\n");
        html("<tr><th>tree</th><td colspan='2' class='sha1'><a href='");
-       query = fmt("id=%s", sha1_to_hex(commit->tree->object.sha1));
+       query = fmt("h=%s&id=%s", sha1_to_hex(commit->object.sha1),
+                   sha1_to_hex(commit->tree->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) {