On 04/05/2024 00:44, Edison Lee wrote:
The patch link for cgit-aurweb is missing the branch (h parameter). Which will link to an invalid page stating, "Repository seems to be empty."
This fix adds the missing branch (h parameter) so it can link to a valid patch page.
Signed-off-by: Edison Lee <edisonlee@edisonlee55.com> --- ui-commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui-commit.c b/ui-commit.c index 7638d02..41c7636 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -75,7 +75,7 @@ void cgit_print_commit(char *hex, const char *prefix) tmp = oid_to_hex(&commit->object.oid); cgit_commit_link(tmp, NULL, NULL, ctx.qry.head, tmp, prefix); html(" ("); - cgit_patch_link("patch", NULL, NULL, NULL, tmp, prefix); + cgit_patch_link("patch", NULL, NULL, ctx.qry.head, tmp, prefix); html(")</td></tr>\n"); html("<tr><th>tree</th><td colspan='2' class='oid'>"); tmp = xstrdup(hex);
Hello, This ML is generally deprecated since the development moved to our gitlab instance [1] and same for our forked version of cgit [2]. You can request an SSO account by sending an email with you preferred username in accountssupport@archlinux.org Thank you, [1]: https://gitlab.archlinux.org/archlinux/aurweb [2]: https://gitlab.archlinux.org/archlinux/cgit -- Leonidas Spyropoulos Developer & DevOps PGP: 59E43E106B247368 244740D17C7FD0EC