aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'cgit/ui-atom.c')
-rw-r--r--cgit/ui-atom.c6+1 −5
1 files changed, 1 insertions, 5 deletions
diff --git a/cgit/ui-atom.c b/cgit/ui-atom.c
index 5da047a..5371319 100644
--- a/cgit/ui-atom.c
+++ b/cgit/ui-atom.c
@@ -19,7 +19,6 @@
static void add_entry(struct commit *commit, const char *host)
{
- char delim = '&';
char *hex;
char *mail, *t, *t2;
struct commitinfo *info;
@@ -65,11 +64,8 @@ static void add_entry(struct commit *commit, const char *host)
html("<link rel='alternate' type='text/html' href='");
html(cgit_httpscheme());
html_attr(host);
- pageurl = cgit_pageurl(ctx.repo->url, "commit", NULL);
+ pageurl = cgit_revurl(ctx.repo->url, hex);
html_attr(pageurl);
- if (ctx.cfg.virtual_root)
- delim = '?';
- html_attrf("%cid=%s", delim, hex);
html("'/>\n");
free(pageurl);
}