mirror of
https://git.zx2c4.com/cgit
synced 2025-07-13 03:34:40 +02: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:
parent
b28b105ec1
commit
a2ddc10479
4 changed files with 13 additions and 10 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue