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(a)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);
--
2.45.0