X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/e5ed227ef0da561e2bde8646ec816842392377ee..d14d77fe95c3b6224b40df9b101dded0deea913c:/ui-refs.c
diff --git a/ui-refs.c b/ui-refs.c
index 295f5ba..ba513c1 100644
--- a/ui-refs.c
+++ b/ui-refs.c
@@ -16,9 +16,9 @@ void cgit_print_refs()
html("
");
- if (cgit_query_path && !strncmp(cgit_query_path, "heads", 5))
+ if (ctx.qry.path && !strncmp(ctx.qry.path, "heads", 5))
cgit_print_branches(0);
- else if (cgit_query_path && !strncmp(cgit_query_path, "tags", 4))
+ else if (ctx.qry.path && !strncmp(ctx.qry.path, "tags", 4))
cgit_print_tags(0);
else {
cgit_print_branches(0);