3 test_description
='test show-branch with more than 8 heads'
5 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
=main
6 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 numbers
="1 2 3 4 5 6 7 8 9 10"
12 test_expect_success
'setup' '
17 git commit -m initial &&
21 git checkout -b branch$i main &&
25 git commit -m branch$i || return 1
52 +++++++++* [branch10^] initial
55 test_expect_success
'show-branch with more than 8 branches' '
57 git show-branch $(for i in $numbers; do echo branch$i; done) > out &&
62 test_expect_success
'show-branch with showbranch.default' '
64 git config --add showbranch.default branch$i
66 git show-branch >out &&