diff options
Diffstat (limited to '')
| -rw-r--r-- | ui-shared.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui-shared.c b/ui-shared.c index d3cf24b..476aa4d 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -947,10 +947,9 @@ void cgit_add_clone_urls(void (*fn)(const char *)) add_clone_urls(fn, ctx.cfg.clone_prefix, ctx.repo->url); } -static int print_branch_option(const char *refname, const char *referent, const struct object_id *oid, - int flags, void *cb_data) +static int print_branch_option(const struct reference *ref, void *cb_data) { - char *name = (char *)refname; + char *name = (char *)ref->name; html_option(name, name, ctx.qry.head); return 0; } |