From d1ddce90f58e9b7fc00c39d912a4c8d1b3e27595 Mon Sep 17 00:00:00 2001
From: Christian Hesse <mail@eworm.de>
Date: Wed, 18 Mar 2015 18:08:48 +0100
Subject: ui-shared: allow remote refs in branch switcher

Signed-off-by: Christian Hesse <mail@eworm.de>
---
 ui-shared.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'ui-shared.c')

diff --git a/ui-shared.c b/ui-shared.c
index 1dd8722..ac5a287 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>");
-- 
cgit 1.4.1-3-g733a5