summaryrefslogtreecommitdiff
path: root/t/t9500-gitweb-standalone-no-errors.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-02-21 23:25:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-02-21 23:25:53 (GMT)
commit5609586f652269186d74a4661600dcbd00b1322a (patch)
tree6747105c4c876b7abb782ffbff8f82d860c04f98 /t/t9500-gitweb-standalone-no-errors.sh
parentd30146ac5f92fd5e60bdc106dfe01a69b3d45d27 (diff)
parentfd49e56af68fbdc19a4dc72ca1cf811a239df595 (diff)
downloadgit-5609586f652269186d74a4661600dcbd00b1322a.zip
git-5609586f652269186d74a4661600dcbd00b1322a.tar.gz
git-5609586f652269186d74a4661600dcbd00b1322a.tar.bz2
Merge branch 'jn/gitweb-unborn-head'
* jn/gitweb-unborn-head: gitweb: Fix "heads" view when there is no current branch
Diffstat (limited to 't/t9500-gitweb-standalone-no-errors.sh')
-rwxr-xr-xt/t9500-gitweb-standalone-no-errors.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t9500-gitweb-standalone-no-errors.sh b/t/t9500-gitweb-standalone-no-errors.sh
index 40a1cb5..90bb605 100755
--- a/t/t9500-gitweb-standalone-no-errors.sh
+++ b/t/t9500-gitweb-standalone-no-errors.sh
@@ -778,4 +778,13 @@ test_expect_success \
'echo "\$projects_list_group_categories = 1;" >>gitweb_config.perl &&
gitweb_run'
+# ----------------------------------------------------------------------
+# unborn branches
+
+test_expect_success \
+ 'unborn HEAD: "summary" page (with "heads" subview)' \
+ 'git checkout orphan_branch || git checkout --orphan orphan_branch &&
+ test_when_finished "git checkout master" &&
+ gitweb_run "p=.git;a=summary"'
+
test_done