diff options
Diffstat (limited to 'ui-shared.c')
| -rw-r--r-- | ui-shared.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/ui-shared.c b/ui-shared.c index 32f23f9..d8cc4d7 100644 --- a/ui-shared.c +++ b/ui-shared.c  | |||
| @@ -273,9 +273,9 @@ void cgit_summary_link(const char *name, const char *title, const char *class, | |||
| 273 | } | 273 | } | 
| 274 | 274 | ||
| 275 | void cgit_tag_link(const char *name, const char *title, const char *class, | 275 | void cgit_tag_link(const char *name, const char *title, const char *class, | 
| 276 | const char *head, const char *rev) | 276 | const char *tag) | 
| 277 | { | 277 | { | 
| 278 | reporevlink("tag", name, title, class, head, rev, NULL); | 278 | reporevlink("tag", name, title, class, tag, NULL, NULL); | 
| 279 | } | 279 | } | 
| 280 | 280 | ||
| 281 | void cgit_tree_link(const char *name, const char *title, const char *class, | 281 | void cgit_tree_link(const char *name, const char *title, const char *class, | 
| @@ -443,8 +443,8 @@ static void cgit_self_link(char *name, const char *title, const char *class) | |||
| 443 | else if (!strcmp(ctx.qry.page, "summary")) | 443 | else if (!strcmp(ctx.qry.page, "summary")) | 
| 444 | cgit_summary_link(name, title, class, ctx.qry.head); | 444 | cgit_summary_link(name, title, class, ctx.qry.head); | 
| 445 | else if (!strcmp(ctx.qry.page, "tag")) | 445 | else if (!strcmp(ctx.qry.page, "tag")) | 
| 446 | cgit_tag_link(name, title, class, ctx.qry.head, | 446 | cgit_tag_link(name, title, class, ctx.qry.has_sha1 ? | 
| 447 | ctx.qry.has_sha1 ? ctx.qry.sha1 : NULL); | 447 | ctx.qry.sha1 : ctx.qry.head); | 
| 448 | else if (!strcmp(ctx.qry.page, "tree")) | 448 | else if (!strcmp(ctx.qry.page, "tree")) | 
| 449 | cgit_tree_link(name, title, class, ctx.qry.head, | 449 | cgit_tree_link(name, title, class, ctx.qry.head, | 
| 450 | ctx.qry.has_sha1 ? ctx.qry.sha1 : NULL, | 450 | ctx.qry.has_sha1 ? ctx.qry.sha1 : NULL, | 
