2
0
mirror of https://git.zx2c4.com/cgit synced 2025-09-03 15:55:13 +00:00

Change commit-view to expect h parameter, not id

The change makes the commit-page benefit from repo.defbranch.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Lars Hjemli
2007-05-16 00:26:23 +02:00
parent b28b105ec1
commit a2ddc10479
4 changed files with 13 additions and 10 deletions

View File

@@ -197,7 +197,7 @@ void cgit_print_commit(const char *hex)
html("<tr><th>parent</th>"
"<td colspan='2' class='sha1'>"
"<a href='");
query = fmt("id=%s", sha1_to_hex(p->item->object.sha1));
query = fmt("h=%s", sha1_to_hex(p->item->object.sha1));
html_attr(cgit_pageurl(cgit_query_repo, "commit", query));
htmlf("'>%s</a> (<a href='",
sha1_to_hex(p->item->object.sha1));