about summary refs log tree commit diff
path: root/ui-shared.c
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2015-03-18 18:08:48 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2015-03-18 18:23:46 +0100
commitd1ddce90f58e9b7fc00c39d912a4c8d1b3e27595 (patch)
tree94a95b1e7af7236f27f3735f72fb3930b3326b32 /ui-shared.c
parentgit: update to v2.3.3 (diff)
downloadcgit-pink-d1ddce90f58e9b7fc00c39d912a4c8d1b3e27595.tar.gz
cgit-pink-d1ddce90f58e9b7fc00c39d912a4c8d1b3e27595.zip
ui-shared: allow remote refs in branch switcher
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c2
1 files changed, 2 insertions, 0 deletions
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>");