t1400: prepare for `main` being default branch name

In addition to the trivial search-and-replace, there are three non-trivial adjustments necessary. Mark the respective test cases with the transitional prereq and make those non-trivial adjustments early, to make this change easier to review. 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 3224b0f0bb7bc90c0156e73c58f1d2e770f0ad7c
1 file changed +5 -5
t/t1400-update-ref.sh
+5 -5
@@ -585,10 +585,10 @@ test_expect_success 'stdin fails on unbalanced quotes' '
585 grep "fatal: badly quoted argument: \\\"master" err
586 '
587
588 -test_expect_success 'stdin fails on invalid escape' '
589 - echo "create $a \"ma\zter\"" >stdin &&
588 +test_expect_success PREPARE_FOR_MAIN_BRANCH 'stdin fails on invalid escape' '
589 + echo "create $a \"ma\zn\"" >stdin &&
590 test_must_fail git update-ref --stdin <stdin 2>err &&
591 - grep "fatal: badly quoted argument: \\\"ma\\\\zter\\\"" err
591 + grep "fatal: badly quoted argument: \\\"ma\\\\zn\\\"" err
592 '
593
594 test_expect_success 'stdin fails on junk after quoted argument' '
@@ -704,9 +704,9 @@ test_expect_success 'stdin succeeds with quoted argument' '
704 test_cmp expect actual
705 '
706
707 -test_expect_success 'stdin succeeds with escaped character' '
707 +test_expect_success PREPARE_FOR_MAIN_BRANCH 'stdin succeeds with escaped character' '
708 git update-ref -d $a &&
709 - echo "create $a \"ma\\163ter\"" >stdin &&
709 + echo "create $a \"ma\\151n\"" >stdin &&
710 git update-ref --stdin <stdin &&
711 git rev-parse $m >expect &&
712 git rev-parse $a >actual &&