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>
This commit is contained in:
parent
56300ff356
commit
8164360fc8
@ -1055,13 +1055,13 @@ test_expect_success 'teardown after filtering matching refs' '
|
|||||||
git -C otherrepo branch -D matching/branch-in-other
|
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 &&
|
cat >expected <<-EOF &&
|
||||||
evil-%%-%42-%(refname)..master
|
evil-%%-%42-%(refname)..master
|
||||||
EOF
|
EOF
|
||||||
(
|
(
|
||||||
cur="evil-%%-%42-%(refname)..mas" &&
|
cur="evil-%%-%42-%(refname)..mai" &&
|
||||||
__git_refs "" "" "evil-%%-%42-%(refname).." mas >"$actual"
|
__git_refs "" "" "evil-%%-%42-%(refname).." mai >"$actual"
|
||||||
) &&
|
) &&
|
||||||
test_cmp expected "$actual"
|
test_cmp expected "$actual"
|
||||||
'
|
'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user