t6300: avoid using the default name of the initial branch
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 6 Dec 2020 13:15:59 +0000 (13:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Dec 2020 18:29:25 +0000 (10:29 -0800)
commit8f19c9fd433c02ee1496bc6f34ef0a061c3f2087
tree9ef2fdc6696c4ae10b9fa7a23d7bdfab45177db3
parent3a0b884caba2752da0af626fb2de7d597c844e8b
t6300: avoid using the default name of the initial branch

Our test suite currently only passes when `git init` uses the name
`master` for the initial branch. This would stop us from changing the
default branch name.

Let's adjust t6300 so that it does not rely on any specific default
branch name. This trick is done by (force-)renaming the initial branch
to the name `main` in the `setup` and the `:remotename and :remoteref`
test cases, and then replacing all mentions of `master` and `MASTER`
with `main` and `MAIN`, respectively.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6300-for-each-ref.sh