t5703: adjust a test case for the upcoming default branch name

We want to rename the default branch name used by `git init` in the near future, using `main` as the new name. In preparation for that, we adjust a test case that wants to rename the default branch to a different name that however has the same length. We use `none` as that name because it matches the length of `main`. As this test case cannot possibly pass until the default branch name is _actually_ changed, we temporarily guard it behind a special-purpose prereq, until the test suite is fully converted to use that new default branch name. 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 97cf8d50b598105ecc383bec8fd9b8699e7ba51f
1 file changed +3 -3
t/t5703-upload-pack-ref-in-want.sh
+3 -3
@@ -383,14 +383,14 @@ test_expect_success 'server is initially behind - ref in want' '
383 test_cmp expected actual
384 '
385
386 -test_expect_success 'server loses a ref - ref in want' '
386 +test_expect_success PREPARE_FOR_MAIN_BRANCH 'server loses a ref - ref in want' '
387 git -C "$REPO" config uploadpack.allowRefInWant true &&
388 rm -rf local &&
389 cp -r "$LOCAL_PRISTINE" local &&
390 - echo "s/master/raster/" >"$HTTPD_ROOT_PATH/one-time-perl" &&
390 + echo "s/main/rain/" >"$HTTPD_ROOT_PATH/one-time-perl" &&
391 test_must_fail git -C local fetch 2>err &&
392
393 - test_i18ngrep "fatal: remote error: unknown ref refs/heads/raster" err
393 + test_i18ngrep "fatal: remote error: unknown ref refs/heads/rain" err
394 '
395
396 # DO NOT add non-httpd-specific tests here, because the last part of this