summaryrefslogtreecommitdiff
path: root/t/t9902-completion.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2020-10-23 14:00:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-10-23 15:57:42 (GMT)
commit8164360fc8631d4090486b42e283c742a84887f8 (patch)
tree3fc81c6913c86d2d8a7f8cdc460f61f442fb683d /t/t9902-completion.sh
parent56300ff356bfa595c7d407323db1fb4cf279e2a7 (diff)
downloadgit-8164360fc8631d4090486b42e283c742a84887f8.zip
git-8164360fc8631d4090486b42e283c742a84887f8.tar.gz
git-8164360fc8631d4090486b42e283c742a84887f8.tar.bz2
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>
Diffstat (limited to 't/t9902-completion.sh')
-rwxr-xr-xt/t9902-completion.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh
index 7b7bc6e..0badcf8 100755
--- a/t/t9902-completion.sh
+++ b/t/t9902-completion.sh
@@ -1055,13 +1055,13 @@ test_expect_success 'teardown after filtering matching refs' '
git -C otherrepo branch -D matching/branch-in-other
'
-test_expect_success '__git_refs - for-each-ref format specifiers in prefix' '
+test_expect_success PREPARE_FOR_MAIN_BRANCH '__git_refs - for-each-ref format specifiers in prefix' '
cat >expected <<-EOF &&
evil-%%-%42-%(refname)..master
EOF
(
- cur="evil-%%-%42-%(refname)..mas" &&
- __git_refs "" "" "evil-%%-%42-%(refname).." mas >"$actual"
+ cur="evil-%%-%42-%(refname)..mai" &&
+ __git_refs "" "" "evil-%%-%42-%(refname).." mai >"$actual"
) &&
test_cmp expected "$actual"
'