the repository which powers this website
ui-shared: allow remote refs in branch switcher
Signed-off-by: Christian Hesse <[email protected]>
Christian Hesse 2015-03-19
parent 8462760 · commit d1ddce9
-rw-r--r--ui-shared.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 1dd87226..ac5a2871 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -895,6 +895,8 @@ static void print_header(void)
cgit_add_hidden_formfields(0, 1, ctx.qry.page);
html("<select name='h' onchange='this.form.submit();'>\n");
for_each_branch_ref(print_branch_option, ctx.qry.head);
+ if (ctx.repo->enable_remote_branches)
+ for_each_remote_ref(print_branch_option, ctx.qry.head);
html("</select> ");
html("<input type='submit' name='' value='switch'/>");
html("</form>");