Unidiff1 files changed, 2 insertions, 2 deletions
|
diff --git a/ui-refs.c b/ui-refs.c index 295f5ba..ba513c1 100644 --- a/ ui-refs.c+++ b/ ui-refs.c |
|
@@ -15,11 +15,11 @@ void cgit_print_refs() |
15 | { |
15 | { |
16 | |
16 | |
17 | html("<table class='list nowrap'>"); |
17 | html("<table class='list nowrap'>"); |
18 | |
18 | |
19 | if (cgit_query_path && !strncmp(cgit_query_path, "heads", 5)) |
19 | if (ctx.qry.path && !strncmp(ctx.qry.path, "heads", 5)) |
20 | cgit_print_branches(0); |
20 | cgit_print_branches(0); |
21 | else if (cgit_query_path && !strncmp(cgit_query_path, "tags", 4)) |
21 | else if (ctx.qry.path && !strncmp(ctx.qry.path, "tags", 4)) |
22 | cgit_print_tags(0); |
22 | cgit_print_tags(0); |
23 | else { |
23 | else { |
24 | cgit_print_branches(0); |
24 | cgit_print_branches(0); |
25 | html("<tr class='nohover'><td colspan='4'> </td></tr>"); |
25 | html("<tr class='nohover'><td colspan='4'> </td></tr>"); |
|