Skip to content

Commit 8164360

Browse files
dschogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 56300ff commit 8164360

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t9902-completion.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,13 +1055,13 @@ test_expect_success 'teardown after filtering matching refs' '
10551055
git -C otherrepo branch -D matching/branch-in-other
10561056
'
10571057

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' '
10591059
cat >expected <<-EOF &&
10601060
evil-%%-%42-%(refname)..master
10611061
EOF
10621062
(
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"
10651065
) &&
10661066
test_cmp expected "$actual"
10671067
'

0 commit comments

Comments
 (0)