cgit

commit d1ddce90f58e9b7fc00c39d912a4c8d1b3e27595

Author: Christian Hesse <mail@eworm.de>

ui-shared: allow remote refs in branch switcher

Signed-off-by: Christian Hesse <mail@eworm.de>

 ui-shared.c | 2 ++


diff --git a/ui-shared.c b/ui-shared.c
index 1dd872264504c555bd0b7ee2784301c162eb28fa..ac5a2871e3625fb3c4d6a5e1f30cb1bb65561022 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -895,6 +895,8 @@ 			html("
\n"); 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>");