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>
此提交包含在:
@ -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));
|
||||
|
新增問題並參考
封鎖使用者