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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user