]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t9902: prepare a test for the upcoming default branch name
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 23 Oct 2020 14:00:04 +0000 (14:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Oct 2020 15:57:42 +0000 (08:57 -0700)
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>
t/t9902-completion.sh

index 7b7bc6e4bd86a39e5d0eeede2eb566efe434e239..0badcf829bd2dd7343d83c43457a73ce3fd6f779 100755 (executable)
@@ -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"
 '