t9902: prepare a test for the upcoming default branch name

We need to adjust a test that uses a prefix of the default branch name, to accommodate for `main` being used soon. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Oct 23, 2020 at 14:00 UTC 8164360fc8631d4090486b42e283c742a84887f8
1 file changed +3 -3
t/t9902-completion.sh
+3 -3
@@ -1055,13 +1055,13 @@ test_expect_success 'teardown after filtering matching refs' '
1055 git -C otherrepo branch -D matching/branch-in-other
1056 '
1057
1058 -test_expect_success '__git_refs - for-each-ref format specifiers in prefix' '
1058 +test_expect_success PREPARE_FOR_MAIN_BRANCH '__git_refs - for-each-ref format specifiers in prefix' '
1059 cat >expected <<-EOF &&
1060 evil-%%-%42-%(refname)..master
1061 EOF
1062 (
1063 - cur="evil-%%-%42-%(refname)..mas" &&
1064 - __git_refs "" "" "evil-%%-%42-%(refname).." mas >"$actual"
1063 + cur="evil-%%-%42-%(refname)..mai" &&
1064 + __git_refs "" "" "evil-%%-%42-%(refname).." mai >"$actual"
1065 ) &&
1066 test_cmp expected "$actual"
1067 '