Skip to contentSkip to conversation

Use main as default branch name

PATCH Superseded Johannes Schindelin via GitGitGadget 11 participants 163 messages Nov 12, 2020 – Nov 23, 2020 1 message not in the archive Kbuild Page 4 of 6

lore
Share & tools
lore
#138 lore raw
In reply to Jonathan Nieder
Quoted 16 lines · Jonathan Nieder
Quoted 15 lines · Jeff King
Quoted 13 lines · Felipe Contreras
Quoted 5 lines · Jeff King

Yes, I have run into that, and it's definitely annoying. The refs/remotes/<remote>/HEAD symref is created by clone, but is not updated by "fetch". That's intentional, because it's supposed to represent a local choice (that is merely seeded by the remote side). But it seems like adding it if it's missing might be reasonable.

The equivalent of this choice is in "git remote add -m":

With -m <master> option, a symbolic-ref refs/remotes/<name>/HEAD is set up to point at remote's <master> branch. See also the set-head command.

Quoted 6 lines
Quoted 4 lines

Wow, I'm not sure how that option escaped my notice for all these years. Of course it would be much more useful if it pulled the value from the remote HEAD (but again, unless we use "-f" we are not contacting the remote at all).

When would I want this implicit "set-head -a" and *not* want "-f"?

This is what I often do:

git remote add origin $url
git fetch origin

That should work (update origin/HEAD), and it currently doesn't.

Quoted 27 lines
Quoted 4 lines

E.g., remote.origin.updateHEAD that can be set to one of:

- never; do not touch it

Quoted 8 lines

- create-if-missing; as discussed here

- always; update it on every fetch

And then it is just a question of what the default is. Currently it is "never". I suspect most people would be happy with "always", but it does break some existing flows. But perhaps "create-if-missing" is a good medium.

Thanks for bringing this up --- this is something I had been interested in as well but hadn't gotten around to contacting the list about it.

The default value for a config setting like this has two purposes:

- it makes the config setting for affected people who have not discovered it

- it provides a sensible, predictable standard behavior

Those two goals are often in tension, as they were for example when setting the default for push.default.

Quoted 6 lines

If I consider them separately:

- to make as smooth a transition as possible for people who were relying on "git remote set-head", a good behavior would be to *fail the fetch* when the remote HEAD changes. That would force the user to make a choice between "never" and "always".

We don't need to fail the fetch, we can print a warning so the user can decide what to do next, including ignoring the warning.

Moreover, since projects rarely change the HEAD, we might want to print the warning always, until the user sets the configuration.

Quoted 6 lines

- one way to relax that without hurting that goal too much would be to fail the fetch when the remote HEAD changes from something other than "master" or "main". That way, the common case (moving from a default to a project-appropriate setting) would work without friction, and in other cases the user could make a choice between "never" and "always".

This thread started in an attempt to move away from hard-coded values. This doesn't help in my opinion.

Quoted 6 lines

- all that said, the default that I prefer is simply "always". Like Felipe hinted, this is a simple, intuitive behavior that most people would expect.

As a transition plan, I can imagine going from one of those first two to the third after some appropriate period of time has passed.

I think the default should be "missing", after a warning period. And perhaps change it to "always" in the next major version, but that basically gets rid of the manual "origin/HEAD" that seems to have been there since forever (at least 2007).

I personally don't see any point in manually setting the HEAD (I have never done so), but that's just me, others might.

Cheers.

Signature · 1 line
Felipe Contreras
#130 lore raw
In reply to Junio C Hamano

Hi Junio,

Quoted 12 lines · Junio C Hamano
Quoted 10 lines · Jonathan Nieder
Quoted 4 lines

IMHO, though, all of this is orthogonal to question of what the default is. Unless we are thinking the basename thing would work as a default, but I don't think that resolves any of the backwards-compatibility concerns.

If we think it would make sense as the *eventual* default, we could use

	[init]
		defaultBranchName =
Quoted 6 lines
Quoted 1 line

(i.e., an empty string) to request it early.

I am not opposed to the idea to invent a notation that asks for the basename behaviour, but I do not think it is a good idea to use "an empty string" for that. I'd rather see us use some consistent naming convention to denote any new "non-constant string" thing.

At least in the tests, using the empty string for GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME is equivalent for not setting it at all, i.e. to trigger the fall-back.

So yes, I totally agree that triggering an interactive prompt by the empty value is not really a good idea (nor a particularly intuitive behavior).

With your idea to special-case any value starting with a colon, :ask: seems like a saner approach.

Having said that, I would still favor the fall-back main over this idea:
it is a much smaller (and less annoying) change of behavior to use a less loaded name than to change from a previously non-interactive to a now-interactive operation.

As to using the base name by default: I don't think that is a good idea at all. Not only doesn't it work when you run git init in the root directory (which some people do, and that's totally okay with me), it also does not work with any base name that isn't a valid ref name. Try this at home:

	$ git check-ref-format --branch "My Documents"
	fatal: 'My Documents' is not a valid branch name

So while it is a cute idea, in general it will simply fail, and is therefore worse than any alternative that does _not_ fail in general.

Quoted 10 lines

What Peff suggested is a more viable possibility, for example. When "[init] defaultBranchAlgorithm = <name>" is set, the fixed string "init.defaultBranch" is ignored and the algorithm specified with its name is invoked to come up with a name dynamically. We may start with something like 'dirname' as the only supported algorithm but that way we would avoid painting ourselves in a corner out of which we cannot escape (e.g. we may come up with a better way than the basename thing, and we would not have a good way to give it a name that is easy to use if we wasted "an empty string" for the basename thing).

Indeed. In the spirit of minimizing disruption (as promised in
https://sfconservancy.org/news/2020/jun/23/gitbranchname/), I would like to stay away from changing the default behavior _that_ much.

My current plan is to implement a warning in git init (much like the pull.rebase one, which I thought would raise outcries of frustration, but to my surprise this did not happen, and git init is _a lot_ less common than git pull).

This needs to be done with care, obviously. I haven't looked yet, but I think there is a chance that git clone would implicitly look at init.defaultBranch only to override it later by the name of the remote primary branch. In that case, we obviously do not want to warn the user because the init.defaultBranch value is not actually used.

Ciao,
Dscho

#88 lore raw

[PATCH v2 28/27] tests: run tests omitted by PREPARE_FOR_MAIN_BRANCH

In reply to Johannes Schindelin via GitGitGadget

Reinstate the test coverage lost due to PREPARE_FOR_MAIN_BRANCH. The remaining impact of that prerequisite was mainly missing coverage from submodule fetches being lost[1], e.g. impacting my in-flight ab/retire-parse-remote. Now the prerequisite is effectively a noop. This goes on top of [2].

I'm not removing the PREPARE_FOR_MAIN_BRANCH prerequisite to keep this change small, instead it's now effectively a noop. It can be removed in some later change.

The only remaining occurrences in t5526-fetch-submodules.sh can be removed without breakage with:

    perl -pi -e 's/PREPARE_FOR_MAIN_BRANCH //g' t/t5526-fetch-submodules.sh

Which at this point leaves only the now-unused prerequisite declaration in test-lib.sh.

The coverage in t9902-completion.sh was restored by partially reverting[3]. After that we were left with one test in a mixed state. It setup "master" but tested for "mai". Change it back to "mas", pending a more complete refactoring of that test.

This change only conflicts between next..seen by clashing with Peter Kaestle's in-flights submodule fix[4]. Fixing the resulting logic error in t5526-fetch-submodules.sh is trivial, simply:

- compare_refs_in_dir A origin/master B origin/master
+ compare_refs_in_dir A origin/main B origin/main

1. 66713e84e7 ("tests: prepare aligned mentions of the default branch name", 2020-10-23)
2. https://public-inbox.org/git/[email protected]/
3. 8164360fc8 ("t9902: prepare a test for the upcoming default branch name", 2020-10-23)
4. https://public-inbox.org/git/[email protected]/

---

Quoted 5 lines · Johannes Schindelin via GitGitGadget

To avoid even more conflicts with topics that did not even make it to seen yet, this patch series specifically excludes t3404, t4013, t5310, t5526, t6300, t7064, t7817, t9902: in those test scripts, we will still use master for the time being. Once the topics in question have settled, I will send the appropriate follow-up patches to adjust them to use main instead.

This is not a replacement for that subsequent cleanup, but seems like a simple enough thing to have now to reinstate the missing test coverage.

Perhaps there's some topics not in "seen" that you have in mind as conflicting, but as noted above the conflict produced here with in-flight in "seen" is trivial.

Seems worth having that sooner than later if Junio's willing juggle that.

 t/t5526-fetch-submodules.sh | 6 +++---
 t/t9902-completion.sh       | 6 +++---
 t/test-lib.sh               | 9 +++------
 3 files changed, 9 insertions(+), 12 deletions(-)
t/t5526-fetch-submodules.sh +3 -3
index dd8e423d25..f45ba02b8a 100755
@@ -481,7 +481,7 @@ test_expect_success PREPARE_FOR_MAIN_BRANCH "don't fetch submodule when newly re
 	test_i18ncmp expect.err actual.err &&
 	(
 		cd submodule &&
-		git checkout -q master
+		git checkout -q main
 	)
 '
 
@@ -663,9 +663,9 @@ test_expect_success 'fetch new submodule commits on-demand without .gitmodules e
 	git config -f .gitmodules --remove-section submodule.sub1 &&
 	git add .gitmodules &&
 	git commit -m "delete gitmodules file" &&
-	git checkout -B master &&
+	git checkout -B main &&
 	git -C downstream fetch &&
-	git -C downstream checkout origin/master &&
+	git -C downstream checkout origin/main &&
 
 	C=$(git -C submodule commit-tree -m "yet another change outside refs/heads" HEAD^{tree}) &&
 	git -C submodule update-ref refs/changes/7 $C &&
t/t9902-completion.sh +3 -3
index 5c01c75d40..3696b85acb 100755
@@ -1055,13 +1055,13 @@ test_expect_success 'teardown after filtering matching refs' '
 	git -C otherrepo branch -D matching/branch-in-other
 '
 
-test_expect_success PREPARE_FOR_MAIN_BRANCH '__git_refs - for-each-ref format specifiers in prefix' '
+test_expect_success '__git_refs - for-each-ref format specifiers in prefix' '
 	cat >expected <<-EOF &&
 	evil-%%-%42-%(refname)..master
 	EOF
 	(
-		cur="evil-%%-%42-%(refname)..mai" &&
-		__git_refs "" "" "evil-%%-%42-%(refname).." mai >"$actual"
+		cur="evil-%%-%42-%(refname)..mas" &&
+		__git_refs "" "" "evil-%%-%42-%(refname).." mas >"$actual"
 	) &&
 	test_cmp expected "$actual"
 '
t/test-lib.sh +3 -6
index d39bdf04ce..ed489b2213 100644
@@ -257,7 +257,7 @@ case "$TRASH_DIRECTORY" in
 esac
 
 case "$TEST_NUMBER" in
-3404|4013|5310|5526|6300|7064|7817|9902)
+3404|4013|5310|6300|7064|7817|9902)
 	# Avoid conflicts with patch series that are cooking at the same time
 	# as the patch series changing the default of `init.defaultBranch`.
 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
@@ -1725,12 +1725,9 @@ test_lazy_prereq REBASE_P '
 	test -z "$GIT_TEST_SKIP_REBASE_P"
 '
 
-# Special-purpose prereq for transitioning to a new default branch name:
-# Some tests need more than just a mindless (case-preserving) s/master/main/g
-# replacement. The non-trivial adjustments are guarded behind this
-# prerequisite, acting kind of as a feature flag
+# Obsolete, do not use, removed soon!
 test_lazy_prereq PREPARE_FOR_MAIN_BRANCH '
-	test "$GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME" = main
+	test "$TEST_NAME" = "t5526-fetch-submodules"
 '
 
 # Ensure that no test accidentally triggers a Git command
Signature · 1 line
2.29.2.222.g5d2a92d10f8
#44 lore raw

Re: [RFC/PATCH] tests: support testing with an arbitrary default branch (sort of)

In reply to a message not in the archive
Quoted 53 lines · Johannes Schindelin

Hi Ævar,

Quoted 24 lines · Ævar Arnfjörð Bjarmason
Quoted 12 lines · Johannes Schindelin

Whatever telemetry I would be able to pull would not be representative, and I would not be at liberty to share it anyway. So I asked Alex Mullans of GitHub (who is in charge of the default branch name switch to main there) whether he has any data I could share publicly and he said: "Across GitHub, 1/4 of daily pushes (and growing) go to main."

Seeing as the branch name to be used in newly-created repositories on GitHub changed only very recently (October 1st, i.e. some 6 weeks ago), I highly suspect that this number means that _a lot_ of existing projects have changed their primary branch name to main, and seem to be quite happy with it.

Quoted 4 lines

All this is to say that I consider it unnecessary to have a long deprecation period or major version bump for this patch series, based on available public data. The name main is already in wide-spread use (and growing) as primary branch name of Git projects.

[...]
I'm on the fence about what we should do in that case, but I'm leaning towards some deprecation period or at least some other approach than a s/master/main/g change precisely because of the numbers you're citing.

Quoted 6 lines

Because they shows how irrelevant the default shipped with git.git is to users who want this s/master/main/g change in repositories they regularly use. So we're really mostly talking about an impact to scripts & some advanced users, both of who have a pretty good argument for "init"'s default being what's been explicitly documented for ages in its manpage.

I think you have a good point here. It really does not matter _all_ that much, yet I still would like to complete the switch to main at some stage. But as you point out, that point does not _have_ to be now.

As a consequence, I reconsider my stance on "splitting off patch 28". I think I will send out a v2 tomorrow, including the fix you suggested for t1400 to also rename naster to nain, and dropping the patch that changes the fall-back for init.defaultBranch for now.

I _do_ want to complete the transition to using GIT_TEST_DEFAULT_INIT_BRANCH=main to address the concern you raised
elsewhere: a couple of test cases are skipped until that transition is complete.

After I send out v2, I will work on that patch that imitates d18c950a69f (pull: warn if the user didn't say whether to rebase or to merge, 2020-03-09) to show some advice when init.defaultBranch is not set.

Quoted 6 lines

My current thinking is that we could show this advice for about half a year and then make the switch to main, continuing to show the advice (now adjusted for main) for about another half year, and then turn the warning off.

What do you think, does that sound too conservative of a plan?

The v2 looks good to me. I just had a suggestion in [1] to apply something on top to restore the test coverage until while whatever comes after it lands.

In case I didn't make it clear I have no objection entirely replacing "master" with "main" in the tests. I just had a practical concern/question about coverage while it was landing, and a suggestion of whether perhaps there was an easier/faster way to do the "init" change first by omitting some of the test churn.

But if you want to do all the legwork that's fine by me :)

I just thought that a sober estimation of how long it takes patches to land would mean the v1 would be in some in-between state for the next release.

FWIW I'm not necessarily for some warning. I mainly wanted to attempt to mediate some of the discussion about the concern to something more productive.

At the risk of repeating too much of my past overly long E-Mails, but if I'm being difficult for you when you're submitting patches & causing work for you I think I owe you an unambiguous explanation for why that is:

I think some of the people advocating this change can rightly look at some of the previous E-Mail traffic and see what are at best rants and at worst some political grandstanding that's at best pretty irrelevant to any proposed changes in git.git.

But that doesn't mean that there aren't some legitimate concerns. Those are in my mind separate from the particular political motivations of the s/master/main/ change, we'd have those with any change to the defaults in the core tooling.

I think in general with such changes that replies like Theodore Ts'o here [2] (not picking on him in particular, I just thought it was representative) reflect a rather insular view of how we need to think about these sorts of changes.

I.e. a *lot* of git users probably aren't aware that there's even a git config (they use some 3rd party UI), and I'd say the vast majority are likely to never find or read any sort of release notes about changes we make.

Most people's relation to git is like my relation to netcat. It's some tool I use 1-2 levels down in my stack, and I only bothered to find out about it because "ssh" stopped working one day.

If at the end of the day we decide to keep something like your original v1 28/28 patch + docs after some realistic look at the impact that would be fine by me. Just as long as we understand who we're likely to break stuff for, and whether it's worth the trade-off.

To Theodore's point about some people's motivations in [2], just to make my stance/opinion on the end-state clear (so far in all these threads I've been commenting on the "how" of the incremental transition):

I do 100% agree that the s/master/main/g change of the default should be made in one form or another. In my mind that doesn't even require a consideration of the political motivations at this point as far as git.git is concerned, just:

1. Major Git hosting providers already made the change

2. Realistically a lot/majority of git's user base interact with that in a major way.

3. A discrepancy in any default between /usr/bin/git and those providers is more confusing than not.

4. #3 doesn't mean they say "jump" we say "how high" whatever the change is.

But in this case the default is an entirely arbitrary default. Not e.g. that they decided to add some ill-thought out header to the object format or whatever.

P.S.: Shouldn't the pull patch in d18c950a69f be using the advice
facility, not warning()?

1. https://public-inbox.org/git/[email protected]/

2. https://public-inbox.org/git/[email protected]/

#45 lore raw

Re: [RFC/PATCH] tests: support testing with an arbitrary default branch (sort of)

Quoted 4 lines · Ævar Arnfjörð Bjarmason

I do 100% agree that the s/master/main/g change of the default should be made in one form or another. In my mind that doesn't even require a consideration of the political motivations at this point as far as git.git is concerned, just:

Others disagree.

While the political motivation shouldn't be a central concern, I suspect the vast majority of users have no idea this change is coming, and when they see the warning they will likely complain... Strongly. The fact that this change is extremely politically charged will become a factor.

Quoted 1 line

1. Major Git hosting providers already made the change

That's their decision. The Git project shouldn't be held hostage to third party decisions.

Quoted 5 lines

2. Realistically a lot/majority of git's user base interact with that in a major way.

3. A discrepancy in any default between /usr/bin/git and those providers is more confusing than not.

That's a problem for GitHub et al. Fortunately they can tell their users to set init.defaultbranch to whatever they want.

Quoted 6 lines

4. #3 doesn't mean they say "jump" we say "how high" whatever the change is.

But in this case the default is an entirely arbitrary default. Not e.g. that they decided to add some ill-thought out header to the object format or whatever.

I don't agree it is arbitrary, otherwise you could set the default to "loremipsum". Moreover, even if was arbitrary, it was arbitrary in 2005, not 2020 where "master" is already widely used in basically *all* the documentation everywhere. Some people have been using this name for 15 years, they won't give it up just like that.

People will complain, especially if they don't see a good reason for the change.

Signature · 1 line
Felipe Contreras
#131 lore raw
In reply to Johannes Schindelin
Quoted 2 lines · Johannes Schindelin

So yes, I totally agree that triggering an interactive prompt by the empty value is not really a good idea (nor a particularly intuitive behavior).

Puzzled.

Nobody talked about going interactive so far and I didn't suggest it---even though I think it is a cute idea to give a "what branch name do you want to use?" prompt, I do not think it is practical.

I thought it was obvious, but the key to coming up with a name dynamically instead of using a fixed string is to derive from a cue the end user gives, not directly use what the end user gives. I do not think anybody in the discussion meant by "the <basename> thing" to literally use $(basename $(cwd)) output, but use it to derive a token that check-ref-format likes. As you may have already known when you wrote them, "My Documents" or the root directory case are red herring---it would be trivial to derive "MyDocuments" or "my-documents" for the former, and for the latter, it is totally OK for the deriving rule to come up with any of "unnamed", "initial", etc.

Most of the thing you said in the message I am responding to did not make much sense to me. Perhaps you can retry after reading the message you are responding to again?

Thanks.

#48 lore raw

Re: [RFC/PATCH] tests: support testing with an arbitrary default branch (sort of)

In reply to Ævar Arnfjörð Bjarmason
Quoted 12 lines · Ævar Arnfjörð Bjarmason

... In my mind that doesn't even require a consideration of the political motivations at this point as far as git.git is concerned, just:

1. Major Git hosting providers already made the change

2. Realistically a lot/majority of git's user base interact with that in a major way.

3. A discrepancy in any default between /usr/bin/git and those providers is more confusing than not.

Quoted 6 lines

4. #3 doesn't mean they say "jump" we say "how high" whatever the change is.

But in this case the default is an entirely arbitrary default. Not e.g. that they decided to add some ill-thought out header to the object format or whatever.

Yes.

Quoted 2 lines

P.S.: Shouldn't the pull patch in d18c950a69f be using the advice
facility, not warning()?

I think warning() is the right thing here, as it is self squelching. Setting pull.rebase (even to 'false') is sufficient---there is no need to set advise.setpullrebase to 'false' on top.

#59 lore raw
In reply to Junio C Hamano

Hi Junio,

Quoted 17 lines · Junio C Hamano
Quoted 6 lines · Johannes Schindelin
	case "$TEST_NUMBER" in
	3404|4013|5310|5526|6300|7064|7817|9902)
		# Avoid conflicts with patch series that are cooking at the same
		# time
		# as the patch series changing the default of
		# `init.defaultBranch`.
Quoted 8 lines
		GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
		export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
		;;
	*)
		GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
		export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
		;;
	esac
Quoted 8 lines

I actually am not a big fan of the centralized table of "these want to run with main". My ideal would be to have an explicit assignment of either master or main for tests that absolutely require the default to be one of these names at the top of these script, and any test scripts that do not care what the initial branch is called (perhaps because they begin by switching to a branch whose name is picked by them immediately after they start and use that name throughout) won't have GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME in them.

I will make it so in v3.

It does make sense, too: the four patch series I sent out in the past hours address some issues that I would have otherwise missed in the transition (in particular, two test cases with test_must_fail in them would have continued to pass, but for the wrong reason, during the transition to main.

Ciao,
Dscho

#93 lore raw

v3 cover tests: use main as default branch name

In reply to Johannes Schindelin via GitGitGadget

This (big) patch series (almost) concludes the transition of Git's test suite to use init.defaultBranch=main that was started in js/default-branch-name-part-4-minus-1, continued in js/default-branch-name-adjust-t5411 and in js/default-branch-name-adjust-t5515. This transition prepares for changing the fall-back value of init.defaultBranch accordingly (which will be done in a different set of patch series, with an appropriate deprecation period), reflecting what many open source projects already did followed by GitHub, Azure Repos and others.

Before doing anything else, the series starts out with a patch that marks all the test scripts that expect a specific default branch name and won't pass with any other name.

Instead of one huge patch that reflects essentially a search-and-replace in the test suite, this patch series then splits the changes up into chunks that are intended to be smaller than 100kB so that they are not rejected by the Git mailing list. Interspersed between those changes are adjustments e.g. in alignment, to make it easier to review (or recreate) the search-and-replace patches.

Note that this branch is based on next, mostly because it would otherwise conflict with en/merge-tests, jk/diff-release-filespec-fix and ds/maintenance-part-3.

To avoid even more conflicts with topics that did not even make it to seen yet, this patch series specifically excludes t1309, t2106, t3040, t3404, t4013, t4015, t5310, t5526, t6300, t7064, t7817, t9902: in those test scripts, we will still use master for the time being. Once the topics in question have settled, I will send the appropriate follow-up patches to adjust them to use main instead.

Note that even after this patch series, master is still found in t/, even outside of the tests we excluded specifically to avoid conflicts with other patch series that are currently in flight: t/perf/, the git p4 tests (because git p4 still uses p4/master to refer to the remote main branch), and some comments still refer to this name. I intend to address at least some of those, in patch series separate from the current one.

Changes since v2:

* The case statement setting the default branch name for each test script was replaced by an initial patch that sets the default branch name in those test scripts that need it (and only in those). This patch also modifies the linux-gcc job to verify that the test suite runs with overridden default branch name (which the now-marked test scripts over-override).
* Four more test scripts were excluded from this patch series: t1309, t2106, t3040 and t4015. These are handled in four separate patch series, where I try to remove the requirement to hard-code the default branch name in the first place.

Changes since v1:

* Dropped the commit changing the default initial branch name for git init.
* Adjusted the patch for t1402 to also replace naster by nain.
* Excluded t5526 from the patches for now, to avoid clashing with pk/subsub-fetch-fix.

Johannes Schindelin (28):
tests: mark tests relying on the current default for
init.defaultBranch
t0060: preemptively adjust alignment
t[01]*: adjust the references to the default branch name "main" t2*: adjust the references to the default branch name "main" t3[0-3]*: adjust the references to the default branch name "main"
t3416: preemptively adjust alignment in a comment
t34*: adjust the references to the default branch name "main" t3[5-9]*: adjust the references to the default branch name "main" t4*: adjust the references to the default branch name "main"
t5323: prepare centered comment for master -> main t5[0-4]*: adjust the references to the default branch name "main"
t5503: prepare aligned comment for replacing master with main t550*: adjust the references to the default branch name "main" t551*: adjust the references to the default branch name "main" t55[23]*: adjust the references to the default branch name "main" t55[4-9]*: adjust the references to the default branch name "main" t5[6-9]*: adjust the references to the default branch name "main" t6[0-3]*: adjust the references to the default branch name "main" t64*: preemptively adjust alignment to prepare for master -> main t6[4-9]*: adjust the references to the default branch name "main" t7[0-4]*: adjust the references to the default branch name "main" t7[5-9]*: adjust the references to the default branch name "main" t8*: adjust the references to the default branch name "main" t9[0-4]*: adjust the references to the default branch name "main" t9[5-7]*: adjust the references to the default branch name "main" tests(git-p4): transition to the default branch name main t99*: adjust the references to the default branch name "main"
tests: drop prereq PREPARE_FOR_MAIN_BRANCH where no longer needed

 ci/run-build-and-tests.sh                     |   2 +
 t/annotate-tests.sh                           |   8 +-
 t/lib-cvs.sh                                  |   2 +-
 t/t0002-gitfile.sh                            |   9 +-
 t/t0020-crlf.sh                               |  11 +-
 t/t0021-conversion.sh                         |  43 +-
 t/t0027-auto-crlf.sh                          |   4 +-
 t/t0028-working-tree-encoding.sh              |   7 +-
 t/t0041-usage.sh                              |  13 +-
 t/t0050-filesystem.sh                         |   9 +-
 t/t0060-path-utils.sh                         |   4 +-
 t/t0100-previous.sh                           |  21 +-
 t/t1004-read-tree-m-u-wf.sh                   |  43 +-
 t/t1008-read-tree-overlay.sh                  |   5 +-
 t/t1009-read-tree-new-index.sh                |   7 +-
 t/t1011-read-tree-sparse-checkout.sh          |   2 +-
 t/t1021-rerere-in-workdir.sh                  |   5 +-
 t/t1090-sparse-checkout-scope.sh              |  13 +-
 t/t1091-sparse-checkout-builtin.sh            |   5 +-
 t/t1300-config.sh                             |  11 +-
 t/t1301-shared-repo.sh                        |   7 +-
 t/t1305-config-include.sh                     |   2 +-
 t/t1400-update-ref.sh                         |  75 +--
 t/t1402-check-ref-format.sh                   |  32 +-
 t/t1403-show-ref.sh                           |  21 +-
 t/t1405-main-ref-store.sh                     |  45 +-
 t/t1406-submodule-ref-store.sh                |  33 +-
 t/t1407-worktree-ref-store.sh                 |  35 +-
 t/t1408-packed-refs.sh                        |  15 +-
 t/t1410-reflog.sh                             |  59 +-
 t/t1411-reflog-show.sh                        |   5 +-
 t/t1413-reflog-detach.sh                      |  27 +-
 t/t1414-reflog-walk.sh                        |  15 +-
 t/t1416-ref-transaction-hooks.sh              |  13 +-
 t/t1430-bad-ref-name.sh                       |  55 +-
 t/t1450-fsck.sh                               |   2 +-
 t/t1500-rev-parse.sh                          |   7 +-
 t/t1503-rev-parse-verify.sh                   |  31 +-
 t/t1505-rev-parse-last.sh                     |  11 +-
 t/t1506-rev-parse-diagnosis.sh                |   7 +-
 t/t1507-rev-parse-upstream.sh                 |  43 +-
 t/t1508-at-combinations.sh                    |  13 +-
 t/t1511-rev-parse-caret.sh                    |  29 +-
 t/t1512-rev-parse-disambiguation.sh           |   5 +-
 t/t1513-rev-parse-prefix.sh                   |   7 +-
 t/t1514-rev-parse-push.sh                     |  19 +-
 t/t1700-split-index.sh                        |   5 +-
 t/t2007-checkout-symlink.sh                   |  13 +-
 t/t2009-checkout-statinfo.sh                  |  11 +-
 t/t2010-checkout-ambiguous.sh                 |   7 +-
 t/t2011-checkout-invalid-head.sh              |  19 +-
 t/t2012-checkout-last.sh                      |  51 +-
 t/t2015-checkout-unborn.sh                    |   5 +-
 t/t2017-checkout-orphan.sh                    |  47 +-
 t/t2020-checkout-detach.sh                    |  31 +-
 t/t2022-checkout-paths.sh                     |  25 +-
 t/t2023-checkout-m.sh                         |  13 +-
 t/t2024-checkout-dwim.sh                      |  70 +--
 t/t2027-checkout-track.sh                     |   9 +-
 t/t2030-unresolve-info.sh                     |   9 +-
 t/t2060-switch.sh                             |  33 +-
 t/t2070-restore.sh                            |   7 +-
 t/t2400-worktree-add.sh                       |  69 +--
 t/t2401-worktree-prune.sh                     |   5 +-
 t/t2402-worktree-list.sh                      |  23 +-
 t/t2405-worktree-submodule.sh                 |   9 +-
 t/t3200-branch.sh                             | 251 ++++-----
 t/t3201-branch-contains.sh                    |  85 +--
 t/t3202-show-branch-octopus.sh                |   5 +-
 t/t3203-branch-output.sh                      |  43 +-
 t/t3204-branch-name-interpretation.sh         |   9 +-
 t/t3205-branch-color.sh                       |  11 +-
 t/t3206-range-diff.sh                         |  43 +-
 t/t3206/history.export                        |   2 +-
 t/t3210-pack-refs.sh                          |   7 +-
 t/t3211-peel-ref.sh                           |   7 +-
 t/t3301-notes.sh                              |   6 +-
 t/t3302-notes-index-expensive.sh              |   5 +-
 t/t3303-notes-subtrees.sh                     |  11 +-
 t/t3304-notes-mixed.sh                        |  11 +-
 t/t3308-notes-merge.sh                        |   2 +-
 t/t3320-notes-merge-worktrees.sh              |   7 +-
 t/t3400-rebase.sh                             |  63 +--
 t/t3402-rebase-merge.sh                       |  47 +-
 t/t3403-rebase-skip.sh                        |   9 +-
 t/t3404-rebase-interactive.sh                 |   3 +
 t/t3405-rebase-malformed.sh                   |  11 +-
 t/t3406-rebase-message.sh                     |  27 +-
 t/t3407-rebase-abort.sh                       |  21 +-
 t/t3408-rebase-multi-line.sh                  |   5 +-
 t/t3409-rebase-preserve-merges.sh             |  13 +-
 t/t3412-rebase-root.sh                        |  31 +-
 t/t3413-rebase-hook.sh                        |  45 +-
 t/t3415-rebase-autosquash.sh                  |   5 +-
 t/t3416-rebase-onto-threedots.sh              |  57 +-
 t/t3418-rebase-continue.sh                    |  27 +-
 t/t3419-rebase-patch-id.sh                    |  15 +-
 t/t3420-rebase-autostash.sh                   |  11 +-
 t/t3423-rebase-reword.sh                      |   6 +-
 t/t3427-rebase-subtree.sh                     |  23 +-
 t/t3430-rebase-merges.sh                      |  19 +-
 t/t3431-rebase-fork-point.sh                  |  35 +-
 t/t3432-rebase-fast-forward.sh                |  37 +-
 t/t3434-rebase-i18n.sh                        |  11 +-
 t/t3435-rebase-gpg-sign.sh                    |   7 +-
 t/t3436-rebase-more-options.sh                |   2 +-
 t/t3500-cherry.sh                             |  15 +-
 t/t3501-revert-cherry-pick.sh                 |   7 +-
 t/t3502-cherry-pick-merge.sh                  |   5 +-
 t/t3503-cherry-pick-root.sh                   |  13 +-
 t/t3504-cherry-pick-rerere.sh                 |  27 +-
 t/t3505-cherry-pick-empty.sh                  |  27 +-
 t/t3506-cherry-pick-ff.sh                     |  11 +-
 t/t3507-cherry-pick-conflict.sh               |   5 +-
 t/t3508-cherry-pick-many-commits.sh           |  41 +-
 t/t3509-cherry-pick-merge-df.sh               |   5 +-
 t/t3512-cherry-pick-submodule.sh              |   5 +-
 t/t3600-rm.sh                                 |  13 +-
 t/t3701-add-interactive.sh                    |   7 +-
 t/t3901-i18n-patch.sh                         |  43 +-
 t/t3903-stash.sh                              |  35 +-
 t/t3910-mac-os-precompose.sh                  |   9 +-
 t/t4013-diff-various.sh                       |   3 +
 t/t4014-format-patch.sh                       | 179 ++++---
 t/t4017-diff-retval.sh                        |   5 +-
 t/t4038-diff-combined.sh                      |  17 +-
 t/t4041-diff-submodule-option.sh              |   5 +-
 t/t4048-diff-combined-binary.sh               |  13 +-
 t/t4052-stat-output.sh                        |   7 +-
 t/t4056-diff-order.sh                         |   5 +-
 t/t4057-diff-combined-paths.sh                |  23 +-
 t/t4061-diff-indent.sh                        |  27 +-
 t/t4066-diff-emit-delay.sh                    |   5 +-
 t/t4068-diff-symmetric-merge-base.sh          |  51 +-
 t/t4103-apply-binary.sh                       |  39 +-
 t/t4108-apply-threeway.sh                     |  17 +-
 t/t4121-apply-diffs.sh                        |   5 +-
 t/t4122-apply-symlink-inside.sh               |   9 +-
 t/t4150-am.sh                                 |  29 +-
 t/t4200-rerere.sh                             |  23 +-
 t/t4201-shortlog.sh                           |   5 +-
 t/t4202-log.sh                                | 109 ++--
 t/t4203-mailmap.sh                            |   5 +-
 t/t4204-patch-id.sh                           |  29 +-
 t/t4207-log-decoration-colors.sh              |   9 +-
 t/t4208-log-magic-pathspec.sh                 |   7 +-
 t/t4211-line-log.sh                           |   3 +
 t/t4211/history.export                        |   2 +-
 t/t4214-log-graph-octopus.sh                  |   5 +-
 t/t4216-log-bloom.sh                          |   7 +-
 t/t4253-am-keep-cr-dos.sh                     |  23 +-
 t/t4257-am-interactive.sh                     |   2 +-
 t/t5150-request-pull.sh                       |  37 +-
 t/t5304-prune.sh                              |   5 +-
 t/t5305-include-tag.sh                        |   5 +-
 t/t5310-pack-bitmaps.sh                       |   3 +
 t/t5312-prune-corruption.sh                   |  19 +-
 t/t5317-pack-objects-filter-objects.sh        |   5 +-
 t/t5322-pack-objects-sparse.sh                |   5 +-
 t/t5323-pack-redundant.sh                     |  66 +--
 t/t5400-send-pack.sh                          |  63 +--
 t/t5401-update-hooks.sh                       |  24 +-
 t/t5402-post-merge-hook.sh                    |   5 +-
 t/t5403-post-checkout-hook.sh                 |   9 +-
 t/t5404-tracking-branches.sh                  |  11 +-
 t/t5405-send-pack-rewind.sh                   |   9 +-
 t/t5407-post-rewrite-hook.sh                  |   5 +-
 t/t5410-receive-pack-alternates.sh            |   7 +-
 t/t5500-fetch-pack.sh                         |  31 +-
 t/t5501-fetch-push-alternates.sh              |   7 +-
 t/t5502-quickfetch.sh                         |   9 +-
 t/t5503-tagfollow.sh                          |  15 +-
 t/t5504-fetch-receive-strict.sh               |  23 +-
 t/t5505-remote.sh                             | 151 +++---
 t/t5506-remote-groups.sh                      |   7 +-
 t/t5509-fetch-push-namespaces.sh              |  33 +-
 t/t5510-fetch.sh                              | 165 +++---
 t/t5511-refspec.sh                            |  12 +-
 t/t5512-ls-remote.sh                          |  29 +-
 t/t5514-fetch-multiple.sh                     |  33 +-
 t/t5516-fetch-push.sh                         | 503 +++++++++---------
 t/t5517-push-mirror.sh                        | 127 ++---
 t/t5518-fetch-exit-status.sh                  |   9 +-
 t/t5519-push-alternates.sh                    |  15 +-
 t/t5520-pull.sh                               |  33 +-
 t/t5521-pull-options.sh                       |  19 +-
 t/t5523-push-upstream.sh                      |  33 +-
 t/t5526-fetch-submodules.sh                   |   3 +
 t/t5527-fetch-odd-refs.sh                     |  17 +-
 t/t5528-push-default.sh                       | 101 ++--
 t/t5529-push-errors.sh                        |   2 +-
 t/t5530-upload-pack-error.sh                  |   2 +-
 t/t5531-deep-submodule-push.sh                | 191 +++----
 t/t5533-push-cas.sh                           | 145 ++---
 t/t5534-push-signed.sh                        |   7 +-
 t/t5537-fetch-shallow.sh                      |  33 +-
 t/t5538-push-shallow.sh                       |  25 +-
 t/t5539-fetch-http-shallow.sh                 |  17 +-
 t/t5540-http-push-webdav.sh                   |  11 +-
 t/t5541-http-push-smart.sh                    |  43 +-
 t/t5542-push-http-shallow.sh                  |  11 +-
 t/t5543-atomic-push.sh                        |  83 +--
 t/t5545-push-options.sh                       |  65 +--
 t/t5548-push-porcelain.sh                     |  64 +--
 t/t5550-http-fetch-dumb.sh                    |  23 +-
 t/t5551-http-fetch-smart.sh                   |  23 +-
 t/t5552-skipping-fetch-negotiator.sh          |   2 +-
 t/t5553-set-upstream.sh                       |  85 +--
 t/t5560-http-backend-noserver.sh              |   3 +
 t/t5561-http-backend.sh                       |   7 +-
 t/t556x_common                                |   8 +-
 t/t5570-git-daemon.sh                         |  19 +-
 t/t5571-pre-push-hook.sh                      |   7 +-
 t/t5572-pull-submodule.sh                     |   4 +-
 t/t5580-unc-paths.sh                          |   5 +-
 t/t5581-http-curl-verbose.sh                  |   5 +-
 t/t5582-fetch-negative-refspec.sh             |  25 +-
 t/t5601-clone.sh                              |   7 +-
 t/t5604-clone-reference.sh                    |  15 +-
 t/t5605-clone-local.sh                        |  13 +-
 t/t5606-clone-options.sh                      |  11 +-
 t/t5607-clone-bundle.sh                       |  17 +-
 t/t5608-clone-2gb.sh                          |   2 +-
 t/t5609-clone-branch.sh                       |   9 +-
 t/t5610-clone-detached.sh                     |   7 +-
 t/t5611-clone-config.sh                       |  19 +-
 t/t5612-clone-refspec.sh                      |  45 +-
 t/t5614-clone-submodules-shallow.sh           |   2 +-
 t/t5616-partial-clone.sh                      |  53 +-
 t/t5617-clone-submodules-remote.sh            |   9 +-
 t/t5700-protocol-v1.sh                        |  19 +-
 t/t5701-git-serve.sh                          |  19 +-
 t/t5702-protocol-v2.sh                        |  53 +-
 t/t5703-upload-pack-ref-in-want.sh            |  63 +--
 t/t5801-remote-helpers.sh                     |  27 +-
 t/t6000-rev-list-misc.sh                      |   5 +-
 t/t6001-rev-list-graft.sh                     |   5 +-
 t/t6004-rev-list-path-optim.sh                |  17 +-
 t/t6006-rev-list-format.sh                    |  17 +-
 t/t6007-rev-list-cherry-pick-file.sh          |   7 +-
 t/t6008-rev-list-submodule.sh                 |   5 +-
 t/t6009-rev-list-parent.sh                    |   9 +-
 t/t6012-rev-list-simplify.sh                  |  11 +-
 t/t6013-rev-list-reverse-parents.sh           |  13 +-
 t/t6016-rev-list-graph-simplify-history.sh    |   5 +-
 t/t6017-rev-list-stdin.sh                     |  11 +-
 t/t6018-rev-list-glob.sh                      |  53 +-
 t/t6019-rev-list-ancestry-path.sh             |   9 +-
 t/t6030-bisect-porcelain.sh                   |  13 +-
 t/t6040-tracking-info.sh                      |  57 +-
 t/t6050-replace.sh                            |  13 +-
 t/t6101-rev-parse-parents.sh                  |   5 +-
 t/t6110-rev-list-sparse.sh                    |   5 +-
 t/t6111-rev-list-treesame.sh                  |   9 +-
 t/t6112-rev-list-filters-objects.sh           |  17 +-
 t/t6120-describe.sh                           |  23 +-
 t/t6200-fmt-merge-msg.sh                      |  53 +-
 t/t6300-for-each-ref.sh                       |   3 +
 t/t6302-for-each-ref-filter.sh                |  61 ++-
 t/t6400-merge-df.sh                           |   9 +-
 t/t6402-merge-rename.sh                       |  49 +-
 t/t6404-recursive-merge.sh                    |   7 +-
 t/t6405-merge-symlinks.sh                     |  17 +-
 t/t6406-merge-attr.sh                         |  27 +-
 t/t6407-merge-binary.sh                       |   9 +-
 t/t6409-merge-subtree.sh                      |  19 +-
 t/t6411-merge-filemode.sh                     |  13 +-
 t/t6412-merge-large-rename.sh                 |   9 +-
 t/t6413-merge-crlf.sh                         |   5 +-
 t/t6414-merge-rename-nocruft.sh               |   5 +-
 t/t6415-merge-dir-to-symlink.sh               |  25 +-
 t/t6416-recursive-corner-cases.sh             |  31 +-
 t/t6417-merge-ours-theirs.sh                  |  31 +-
 t/t6418-merge-text-auto.sh                    |  15 +-
 t/t6419-merge-ignorecase.sh                   |  13 +-
 t/t6422-merge-rename-corner-cases.sh          |  15 +-
 t/t6425-merge-rename-delete.sh                |   5 +-
 t/t6427-diff3-conflict-markers.sh             |  17 +-
 t/t6430-merge-recursive.sh                    |  21 +-
 t/t6432-merge-recursive-space-options.sh      |   9 +-
 t/t6433-merge-toplevel.sh                     |  11 +-
 t/t6434-merge-recursive-rename-options.sh     |   9 +-
 t/t6436-merge-overwrite.sh                    |   5 +-
 t/t6437-submodule-merge.sh                    |  17 +-
 t/t6439-merge-co-error-msgs.sh                |   9 +-
 t/t6501-freshen-objects.sh                    |   5 +-
 t/t7003-filter-branch.sh                      |  43 +-
 t/t7004-tag.sh                                |  11 +-
 t/t7030-verify-tag.sh                         |   5 +-
 t/t7060-wtstatus.sh                           |  29 +-
 t/t7063-status-untracked-cache.sh             |  17 +-
 t/t7064-wtstatus-pv2.sh                       |   3 +
 t/t7102-reset.sh                              |   9 +-
 t/t7113-post-index-change-hook.sh             |   5 +-
 t/t7201-co.sh                                 | 113 ++--
 t/t7400-submodule-basic.sh                    |  23 +-
 t/t7403-submodule-sync.sh                     |  13 +-
 t/t7406-submodule-update.sh                   |  41 +-
 t/t7407-submodule-foreach.sh                  |  27 +-
 t/t7409-submodule-detached-work-tree.sh       |  11 +-
 t/t7417-submodule-path-url.sh                 |   5 +-
 t/t7501-commit-basic-functionality.sh         |   5 +-
 t/t7502-commit-porcelain.sh                   |  15 +-
 ...3-pre-commit-and-pre-merge-commit-hooks.sh |  45 +-
 t/t7504-commit-msg-hook.sh                    |  27 +-
 t/t7505-prepare-commit-msg-hook.sh            |  23 +-
 t/t7508-status.sh                             |  58 +-
 t/t7510-signed-commit.sh                      |   5 +-
 t/t7512-status-help.sh                        |  43 +-
 t/t7517-per-repo-email.sh                     |  15 +-
 t/t7600-merge.sh                              |  47 +-
 t/t7606-merge-custom.sh                       |   2 +-
 t/t7608-merge-messages.sh                     |  39 +-
 t/t7610-mergetool.sh                          | 177 +++---
 t/t7611-merge-abort.sh                        |   7 +-
 t/t7612-merge-verify-signatures.sh            |   5 +-
 t/t7614-merge-signoff.sh                      |  27 +-
 t/t7701-repack-unpack-unreachable.sh          |   5 +-
 t/t7800-difftool.sh                           |  41 +-
 t/t7810-grep.sh                               |  31 +-
 t/t8001-annotate.sh                           |   5 +-
 t/t8002-blame.sh                              |   3 +
 t/t8003-blame-corner-cases.sh                 |   7 +-
 t/t8004-blame-with-conflicts.sh               |  17 +-
 t/t8012-blame-colors.sh                       |   3 +
 t/t9001-send-email.sh                         |  31 +-
 t/t9100-git-svn-basic.sh                      |   5 +-
 t/t9145-git-svn-master-branch.sh              |   9 +-
 t/t9151-svn-mergeinfo.sh                      |   5 +-
 t/t9155-git-svn-fetch-deleted-tag.sh          |   5 +-
 t/t9156-git-svn-fetch-deleted-tag-2.sh        |   9 +-
 t/t9163-git-svn-reset-clears-caches.sh        |   5 +-
 t/t9169-git-svn-dcommit-crlf.sh               |   5 +-
 t/t9300-fast-import.sh                        |  85 +--
 t/t9301-fast-import-notes.sh                  |  17 +-
 t/t9302-fast-import-unpack-limit.sh           |  16 +-
 t/t9350-fast-export.sh                        |  89 ++--
 t/t9351-fast-export-anonymize.sh              |   7 +-
 t/t9400-git-cvsserver-server.sh               |  35 +-
 t/t9401-git-cvsserver-crlf.sh                 |  19 +-
 t/t9402-git-cvsserver-refs.sh                 |  11 +-
 t/t9500-gitweb-standalone-no-errors.sh        |  23 +-
 t/t9501-gitweb-standalone-http-status.sh      |  17 +-
 t/t9502-gitweb-standalone-parse-output.sh     |  19 +-
 t/t9600-cvsimport.sh                          |   5 +-
 t/t9601-cvsimport-vendor-branch.sh            |  19 +-
 t/t9602-cvsimport-branches-tags.sh            |   7 +-
 t/t9603-cvsimport-patchsets.sh                |  11 +-
 t/t9800-git-p4-basic.sh                       |   5 +-
 t/t9801-git-p4-branch.sh                      |  19 +-
 t/t9806-git-p4-options.sh                     |  21 +-
 t/t9807-git-p4-submit.sh                      |   5 +-
 t/t9811-git-p4-label-import.sh                |   5 +-
 t/t9902-completion.sh                         |   3 +
 t/t9903-bash-prompt.sh                        | 117 ++--
 355 files changed, 4835 insertions(+), 3861 deletions(-)

base-commit: aff20da3a209088e7f8f3632077fa11b86453d67
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-762%2Fdscho%2Fuse-main-as-default-branch-name-v3
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-762/dscho/use-main-as-default-branch-name-v3
Pull-Request: https://github.com/gitgitgadget/git/pull/762

Range-diff vs v2:

  -:  ---------- >  1:  e9ee22525a tests: mark tests relying on the current default for `init.defaultBranch`
  1:  0a05d319c0 =  2:  8c2e158c8f t0060: preemptively adjust alignment
  2:  b8fa037791 !  3:  9b7749dcde t[01]*: adjust the references to the default branch name "main"
     @@ Metadata
       ## Commit message ##
          t[01]*: adjust the references to the default branch name "main"
      
     -    This trick was performed via
     +    Carefully excluding t1309, which sees independent development elsewhere
     +    at the time of writing, we transition above-mentioned tests to the
     +    default branch name `main`. This trick was performed via
      
                  $ (cd t &&
                     sed -i -e 's/master/main/g' -e 's/MASTER/MAIN/g' \
     -                    -e 's/Master/Main/g' -e 's/naster/nain/g' -- t[01]*.sh)
     +                    -e 's/Master/Main/g' -e 's/naster/nain/g' -- t[01]*.sh &&
     +               git checkout HEAD -- t1309\*)
      
          Note that t5533 contains a variation of the name `master` (`naster`)
          that we rename here, too.
     @@ Commit message
          Signed-off-by: Johannes Schindelin <[email protected]>
      
       ## t/t0002-gitfile.sh ##
     +@@ t/t0002-gitfile.sh: test_description='.git file
     + 
     + Verify that plumbing commands work when .git is a file
     + '
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t0002-gitfile.sh: test_expect_success 'enter_repo non-strict mode' '
       	git ls-remote enter_repo >actual &&
       	cat >expected <<-EOF &&
     @@ t/t0002-gitfile.sh: test_expect_success 'enter_repo strict mode' '
       	test_cmp expected actual
      
       ## t/t0020-crlf.sh ##
     +@@
     + 
     + test_description='CRLF conversion'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t0020-crlf.sh: test_expect_success 'checkout with existing .gitattributes' '
       	git add .gitattributes .file &&
       	git commit -m second &&
     @@ t/t0020-crlf.sh: test_expect_success 'checkout when deleting .gitattributes' '
       '
      
       ## t/t0021-conversion.sh ##
     +@@
     + 
     + test_description='blob conversion via gitattributes'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t0021-conversion.sh: test_expect_success PERL 'required process filter should filter data' '
       		test_cmp_count expected.log debug.log &&
       
     @@ t/t0027-auto-crlf.sh: test_expect_success 'ls-files --eol -o Text/Binary' '
       	printf "\$Id: 0000000000000000000000000000000000000000 \$\nLINEONE\nLINETWO\nLINETHREE"     >LF &&
      
       ## t/t0028-working-tree-encoding.sh ##
     +@@
     + 
     + test_description='working-tree-encoding conversion via gitattributes'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t0028-working-tree-encoding.sh: test_expect_success 'error if encoding round trip is not the same during refresh
       	TEST_HASH=$(git hash-object --no-filters -w nonsense.utf16le) &&
       	git update-index --add --cacheinfo 100644 $TEST_HASH nonsense.utf16le &&
     @@ t/t0028-working-tree-encoding.sh: test_expect_success 'error if encoding garbage
       	test_i18ngrep "error: BOM is required" err.out
      
       ## t/t0041-usage.sh ##
     +@@
     + 
     + test_description='Test commands behavior when given invalid argument value'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t0041-usage.sh: test_expect_success 'tag usage error' '
       '
       
     @@ t/t0041-usage.sh: test_expect_success 'for-each-ref --contains <inexistent_objec
       '
      
       ## t/t0050-filesystem.sh ##
     +@@
     + 
     + test_description='Various filesystem issues'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t0050-filesystem.sh: test_expect_success "setup case tests" '
       	git mv camelcase tmp &&
       	git mv tmp CamelCase &&
     @@ t/t0060-path-utils.sh: test_git_path GIT_COMMON_DIR=bar info/sparse-checkout
       test_git_path GIT_COMMON_DIR=bar config                   bar/config
      
       ## t/t0100-previous.sh ##
     +@@
     + 
     + test_description='previous branch syntax @{-n}'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t0100-previous.sh: test_expect_success 'branch -d @{-1}' '
       	test_commit A &&
       	git checkout -b junk &&
     @@ t/t0100-previous.sh: test_expect_success 'merge @{-1}~1' '
       
      
       ## t/t1004-read-tree-m-u-wf.sh ##
     +@@
     + 
     + test_description='read-tree -m -u checks working tree files'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1004-read-tree-m-u-wf.sh: test_expect_success 'two-way setup' '
       	git branch side &&
       	git tag -f branch-point &&
     @@ t/t1004-read-tree-m-u-wf.sh: test_expect_success 'three-way not complaining on a
       test_expect_success '3-way not overwriting local changes (setup)' '
      
       ## t/t1008-read-tree-overlay.sh ##
     +@@
     + 
     + test_description='test multi-tree read-tree without merging'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1008-read-tree-overlay.sh: test_expect_success setup '
       '
       
     @@ t/t1008-read-tree-overlay.sh: test_expect_success setup '
       	test_cmp expect actual
      
       ## t/t1009-read-tree-new-index.sh ##
     +@@
     + 
     + test_description='test read-tree into a fresh index file'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1009-read-tree-new-index.sh: test_expect_success setup '
       
       test_expect_success 'non-existent index file' '
     @@ t/t1011-read-tree-sparse-checkout.sh
       | M	init.t
      
       ## t/t1021-rerere-in-workdir.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='rerere run in a workdir'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1021-rerere-in-workdir.sh: test_expect_success SYMLINKS setup '
       	test_tick &&
       	git commit -a -m goodbye &&
     @@ t/t1021-rerere-in-workdir.sh: test_expect_success SYMLINKS setup '
       test_expect_success SYMLINKS 'rerere in workdir' '
      
       ## t/t1090-sparse-checkout-scope.sh ##
     +@@
     + 
     + test_description='sparse checkout scope tests'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1090-sparse-checkout-scope.sh: test_expect_success 'create feature branch' '
       	git commit -m "modification"
       '
     @@ t/t1090-sparse-checkout-scope.sh: test_expect_success 'merge feature branch into
       	test_path_is_file c &&
      
       ## t/t1091-sparse-checkout-builtin.sh ##
     +@@
     + 
     + test_description='sparse checkout builtin tests'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1091-sparse-checkout-builtin.sh: test_expect_success 'interaction with clone --no-checkout (unborn index)' '
       	test_path_is_missing clone_no_checkout/.git/index &&
       
     @@ t/t1091-sparse-checkout-builtin.sh: test_expect_success 'interaction with clone
       '
      
       ## t/t1300-config.sh ##
     +@@
     + 
     + test_description='Test git config in different settings'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1300-config.sh: test_expect_success 'check split_cmdline return' "
       	echo foo > foo &&
       	git add foo &&
     @@ t/t1300-config.sh: test_expect_success '--show-origin blob' '
       
      
       ## t/t1301-shared-repo.sh ##
     +@@
     + 
     + test_description='Test shared repository initialization'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1301-shared-repo.sh: test_expect_success POSIXPERM 'git reflog expire honors core.sharedRepository' '
       	umask 077 &&
       	git config core.sharedRepository group &&
     @@ t/t1305-config-include.sh: test_expect_success SYMLINKS 'conditional include, gi
       	git checkout -b foo-branch &&
       	echo 9 >expect &&
      
     - ## t/t1309-early-config.sh ##
     -@@ t/t1309-early-config.sh: test_expect_failure 'ignore .git/ with invalid config' '
     - 
     - test_expect_success 'early config and onbranch' '
     - 	echo "[broken" >broken &&
     --	test_with_config "[includeif \"onbranch:master\"]path=../broken"
     -+	test_with_config "[includeif \"onbranch:main\"]path=../broken"
     - '
     + ## t/t1400-update-ref.sh ##
     +@@
     + #
       
     - test_expect_success 'onbranch config outside of git repo' '
     --	test_config_global includeIf.onbranch:master.path non-existent &&
     -+	test_config_global includeIf.onbranch:main.path non-existent &&
     - 	nongit git help
     - '
     + test_description='Test git update-ref and basic ref logging'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
       
     -
     - ## t/t1400-update-ref.sh ##
     -@@ t/t1400-update-ref.sh: test_description='Test git update-ref and basic ref logging'
     + . ./test-lib.sh
       
       Z=$ZERO_OID
       
     @@ t/t1402-check-ref-format.sh: test_expect_success 'check-ref-format --branch @{-1
       
      
       ## t/t1403-show-ref.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='show-ref'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1403-show-ref.sh: test_expect_success setup '
       	git checkout -b side &&
       	test_commit B &&
     @@ t/t1403-show-ref.sh: test_expect_success 'show-ref -d' '
       	done >expect.heads &&
      
       ## t/t1405-main-ref-store.sh ##
     +@@
     + 
     + test_description='test main ref store api'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1405-main-ref-store.sh: test_expect_success 'peel_ref(new-tag)' '
       	test_cmp expected actual
       '
     @@ t/t1405-main-ref-store.sh: test_expect_success 'for_each_reflog()' '
       
      
       ## t/t1406-submodule-ref-store.sh ##
     +@@
     + 
     + test_description='test submodule ref store api'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1406-submodule-ref-store.sh: test_expect_success 'setup' '
       	(
       		cd sub &&
     @@ t/t1406-submodule-ref-store.sh: test_expect_success 'for_each_reflog()' '
       
      
       ## t/t1407-worktree-ref-store.sh ##
     +@@
     + 
     + test_description='test worktree ref store api'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1407-worktree-ref-store.sh: RMAIN="test-tool ref-store worktree:main"
       
       test_expect_success 'setup' '
     @@ t/t1407-worktree-ref-store.sh: test_expect_success 'for_each_reflog()' '
       '
      
       ## t/t1408-packed-refs.sh ##
     +@@
     + 
     + test_description='packed-refs entries are covered by loose refs'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1408-packed-refs.sh: test_expect_success setup '
       	git commit --allow-empty -m one &&
       	one=$(git rev-parse HEAD) &&
     @@ t/t1408-packed-refs.sh: test_expect_success setup '
       '
      
       ## t/t1410-reflog.sh ##
     +@@
     + #
     + 
     + test_description='Test prune and reflog expiration'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1410-reflog.sh: test_expect_success setup '
       
       	check_fsck &&
     @@ t/t1410-reflog.sh: test_expect_success 'stale dirs do not cause d/f conflicts (r
       '
      
       ## t/t1411-reflog-show.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='Test reflog display routines'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1411-reflog-show.sh: test_expect_success 'git log -g -p shows diffs vs. parents' '
       '
       
     @@ t/t1411-reflog-show.sh: test_expect_success 'git log -g -p shows diffs vs. paren
       
      
       ## t/t1413-reflog-detach.sh ##
     -@@ t/t1413-reflog-detach.sh: test_description='Test reflog interaction with detached HEAD'
     +@@
     + #!/bin/sh
     + 
     + test_description='Test reflog interaction with detached HEAD'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
       . ./test-lib.sh
       
       reset_state () {
     @@ t/t1413-reflog-detach.sh: test_expect_success 'switch to branch' '
       	test_cmp expect actual
      
       ## t/t1414-reflog-walk.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='various tests of reflog walk (log -g) behavior'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1414-reflog-walk.sh: test_expect_success 'set up some reflog entries' '
       	test_commit two &&
       	git checkout -b side HEAD^ &&
     @@ t/t1414-reflog-walk.sh: test_expect_success 'walking multiple reflogs shows all'
       
      
       ## t/t1416-ref-transaction-hooks.sh ##
     +@@
     + 
     + test_description='reference transaction hooks'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1416-ref-transaction-hooks.sh: test_expect_success 'hook gets all queued updates in prepared state' '
       	EOF
       	cat >expect <<-EOF &&
     @@ t/t1416-ref-transaction-hooks.sh: test_expect_success 'hook gets all queued upda
       	test_cmp expect actual
      
       ## t/t1430-bad-ref-name.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='Test handling of ref names that check-ref-format rejects'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1430-bad-ref-name.sh: test_expect_success 'fast-import: fail on invalid branch name ".badbranchname"'
       		corrupt
       		COMMIT
     @@ t/t1450-fsck.sh
       . ./test-lib.sh
      
       ## t/t1500-rev-parse.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='test git rev-parse'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1500-rev-parse.sh: test_expect_success 'showing the superproject correctly' '
       	test_commit -C super/dir/sub branch1_commit &&
       	git -C super add dir/sub &&
     @@ t/t1500-rev-parse.sh: test_expect_success 'showing the superproject correctly' '
       	test_commit -C super branch2_commit &&
      
       ## t/t1503-rev-parse-verify.sh ##
     +@@ t/t1503-rev-parse-verify.sh: test_description='test git rev-parse --verify'
     + 
     + exec </dev/null
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1503-rev-parse-verify.sh: test_expect_success 'works with one good rev' '
       	test "$rev_hash3" = "$HASH3" &&
       	rev_hash4=$(git rev-parse --verify $HASH4) &&
     @@ t/t1503-rev-parse-verify.sh: test_expect_success 'no stdout output on error' '
       test_expect_success SYMLINKS 'ref resolution not confused by broken symlinks' '
      
       ## t/t1505-rev-parse-last.sh ##
     +@@
     + 
     + test_description='test @{-N} syntax'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1505-rev-parse-last.sh: test_expect_success 'setup' '
       	make_commit 3 &&
       	git checkout side &&
     @@ t/t1505-rev-parse-last.sh: test_expect_success '@{-1}@{1} works' '
       test_expect_success '@{-3} fails' '
      
       ## t/t1506-rev-parse-diagnosis.sh ##
     +@@ t/t1506-rev-parse-diagnosis.sh: test_description='test git rev-parse diagnosis for invalid argument'
     + 
     + exec </dev/null
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1506-rev-parse-diagnosis.sh: test_expect_success 'incorrect file in :path and :N:path' '
       '
       
     @@ t/t1506-rev-parse-diagnosis.sh: test_expect_success 'incorrect file in :path and
       '
      
       ## t/t1507-rev-parse-upstream.sh ##
     +@@
     + 
     + test_description='test <branch>@{upstream} syntax'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1507-rev-parse-upstream.sh: test_expect_success 'setup' '
       	test_commit 1 &&
       	git checkout -b side &&
     @@ t/t1507-rev-parse-upstream.sh: test_expect_success 'log -g other@{u}@{now}' '
       	Date:   Thu Apr 7 15:15:13 2005 -0700
      
       ## t/t1508-at-combinations.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='test various @{X} syntax combinations together'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1508-at-combinations.sh: fail() {
       }
       
     @@ t/t1508-at-combinations.sh: check "@{-1}@{1}" commit old-one
       check "@@/at-test" ref refs/heads/@@/at-test
      
       ## t/t1511-rev-parse-caret.sh ##
     +@@
     + 
     + test_description='tests for ref^{stuff}'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1511-rev-parse-caret.sh: test_expect_success 'setup' '
       	git commit -m Initial &&
       	git tag -a -m commit commit-tag &&
     @@ t/t1511-rev-parse-caret.sh: test_expect_success 'ref^{tag}' '
       
      
       ## t/t1512-rev-parse-disambiguation.sh ##
     +@@ t/t1512-rev-parse-disambiguation.sh: one tagged as v1.0.0.  They all have one regular file each.
     + 
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1512-rev-parse-disambiguation.sh: test_expect_success 'more history' '
       	side=$(git rev-parse HEAD) &&
       
     @@ t/t1512-rev-parse-disambiguation.sh: test_expect_success 'more history' '
       	# clean up a0blgqsjc as well.  If you use resolve, merge will
      
       ## t/t1513-rev-parse-prefix.sh ##
     +@@
     + 
     + test_description='Tests for rev-parse --prefix'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1513-rev-parse-prefix.sh: test_expect_success 'disambiguate path with valid prefix' '
       '
       
     @@ t/t1513-rev-parse-prefix.sh: test_expect_success 'disambiguate path with valid p
       	test_cmp expected actual
      
       ## t/t1514-rev-parse-push.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='test <branch>@{push} syntax'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1514-rev-parse-push.sh: test_expect_success 'setup' '
       	git remote add other other.git &&
       	test_commit base &&
     @@ t/t1514-rev-parse-push.sh: test_expect_success 'setup' '
       test_expect_success 'triangular @{push} fails with default=simple' '
      
       ## t/t1700-split-index.sh ##
     +@@
     + 
     + test_description='split index mode tests'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t1700-split-index.sh: test_expect_success 'do not refresh null base index' '
       		test_commit initial &&
       		git checkout -b side-branch &&
     @@ t/t1700-split-index.sh: test_expect_success 'do not refresh null base index' '
       		git update-index --split-index &&
       		test_commit more &&
       		# must not write a new shareindex, or we wont catch the problem
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TRASH_DIRECTORY" in
     -  *) TRASH_DIRECTORY="$TEST_OUTPUT_DIRECTORY/$TRASH_DIRECTORY" ;;
     - esac
     - 
     -+case "$TEST_NUMBER" in
     -+[01]*)
     -+	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     -+	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     -+	;;
     -+esac
     -+
     - # If --stress was passed, run this test repeatedly in several parallel loops.
     - if test "$GIT_TEST_STRESS_STARTED" = "done"
     - then
  3:  0d4f1275f7 !  4:  f5dbc0d5bb t2*: adjust the references to the default branch name "main"
     @@ Metadata
       ## Commit message ##
          t2*: adjust the references to the default branch name "main"
      
     -    This trick was performed via
     +    Carefully excluding t2106, which sees independent development elsewhere
     +    at the time of writing, we transition above-mentioned tests to the
     +    default branch name `main`. This trick was performed via
      
                  $ (cd t &&
                     sed -i -e 's/master/main/g' -e 's/MASTER/MAIN/g' \
     -                    -e 's/Master/Main/g' -- t2*.sh)
     +                    -e 's/Master/Main/g' -- t2*.sh &&
     +               git checkout HEAD -- t2106\*)
      
          This allows us to define `GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main`
          for those tests.
     @@ Commit message
          Signed-off-by: Johannes Schindelin <[email protected]>
      
       ## t/t2007-checkout-symlink.sh ##
     +@@
     + 
     + test_description='git checkout to switch between branches with symlink<->dir'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2007-checkout-symlink.sh: test_expect_success setup '
       	echo hello >frotz/filfre &&
       	git add frotz/filfre &&
     @@ t/t2007-checkout-symlink.sh: test_expect_success setup '
       test_expect_success 'switch from dir to symlink' '
      
       ## t/t2009-checkout-statinfo.sh ##
     +@@
     + 
     + test_description='checkout should leave clean stat info'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2009-checkout-statinfo.sh: test_expect_success 'branch switching' '
       	git reset --hard &&
       	test "$(git diff-files --raw)" = "" &&
     @@ t/t2009-checkout-statinfo.sh: test_expect_success 'path checkout' '
       '
      
       ## t/t2010-checkout-ambiguous.sh ##
     +@@
     + 
     + test_description='checkout and pathspecs/refspecs ambiguities'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2010-checkout-ambiguous.sh: test_expect_success 'reference must be a tree' '
       '
       
     @@ t/t2010-checkout-ambiguous.sh: test_expect_success 'disambiguate checking out fr
       '
      
       ## t/t2011-checkout-invalid-head.sh ##
     +@@
     + 
     + test_description='checkout switching away from an invalid branch'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2011-checkout-invalid-head.sh: test_expect_success 'setup' '
       '
       
     @@ t/t2011-checkout-invalid-head.sh: test_expect_success 'pack refs' '
       test_done
      
       ## t/t2012-checkout-last.sh ##
     +@@
     + 
     + test_description='checkout can switch to last branch and merge base'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2012-checkout-last.sh: test_expect_success 'first branch switch' '
       
       test_expect_success '"checkout -" switches back' '
     @@ t/t2012-checkout-last.sh: test_expect_success 'merge base test setup' '
       test_done
      
       ## t/t2015-checkout-unborn.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='checkout from unborn branch'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2015-checkout-unborn.sh: test_expect_success 'setup' '
       	 git add file &&
       	 git commit -m base
     @@ t/t2015-checkout-unborn.sh: test_expect_success 'setup' '
       test_expect_success 'checkout from unborn preserves untracked files' '
      
       ## t/t2017-checkout-orphan.sh ##
     +@@ t/t2017-checkout-orphan.sh: test_description='git checkout --orphan
     + 
     + Main Tests for --orphan functionality.'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2017-checkout-orphan.sh: test_expect_success '--orphan creates a new orphan branch from HEAD' '
       	test_tick &&
       	git commit -m "Third Commit" &&
     @@ t/t2017-checkout-orphan.sh: test_expect_success '--orphan with -l makes reflog w
       '
      
       ## t/t2020-checkout-detach.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='checkout into detached HEAD state'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2020-checkout-detach.sh: check_no_orphan_warning() {
       }
       
     @@ t/t2020-checkout-detach.sh: test_expect_success 'describe_detached_head prints n
       	cat >1st_detach <<-EOF &&
      
       ## t/t2022-checkout-paths.sh ##
     -@@ t/t2022-checkout-paths.sh: test_description='checkout $tree -- $paths'
     +@@
     + #!/bin/sh
     + 
     + test_description='checkout $tree -- $paths'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
       
       test_expect_success setup '
       	mkdir dir &&
     @@ t/t2022-checkout-paths.sh: test_expect_success 'do not touch unmerged entries ma
       '
      
       ## t/t2023-checkout-m.sh ##
     +@@ t/t2023-checkout-m.sh: test_description='checkout -m -- <conflicted path>
     + 
     + Ensures that checkout -m on a resolved file restores the conflicted file'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2023-checkout-m.sh: test_expect_success setup '
       	test_tick &&
       	test_commit both.txt both.txt initial &&
     @@ t/t2024-checkout-dwim.sh: test_expect_success 'loosely defined local base branch
       	status_uno_is_clean &&
      
       ## t/t2027-checkout-track.sh ##
     +@@
     + 
     + test_description='tests for git branch --track'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2027-checkout-track.sh: test_expect_success 'setup' '
       '
       
     @@ t/t2027-checkout-track.sh: test_expect_success 'setup' '
       
      
       ## t/t2030-unresolve-info.sh ##
     +@@
     + 
     + test_description='undoing resolution'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2030-unresolve-info.sh: test_expect_success setup '
       	test_commit fourth fi/le fourth &&
       	git checkout add-add &&
     @@ t/t2030-unresolve-info.sh: test_expect_success 'rerere forget (binary)' '
       	test_must_fail git merge fifth &&
      
       ## t/t2060-switch.sh ##
     +@@
     + 
     + test_description='switch basic functionality'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2060-switch.sh: test_expect_success 'switch branch' '
       '
       
     @@ t/t2060-switch.sh: test_expect_success 'switching ignores file of same branch na
       	test_must_fail git switch foo &&
      
       ## t/t2070-restore.sh ##
     +@@
     + 
     + test_description='restore basic functionality'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2070-restore.sh: test_expect_success 'setup' '
       	echo ignored >ignored &&
       	echo /ignored >.gitignore &&
     @@ t/t2070-restore.sh: test_expect_success 'restore --ignore-unmerged ignores unmer
       		git commit -am second &&
       		test_must_fail git merge first &&
      
     - ## t/t2106-update-index-assume-unchanged.sh ##
     -@@ t/t2106-update-index-assume-unchanged.sh: test_expect_success 'do not switch branches with dirty file' \
     - 	 git checkout other &&
     - 	 echo dirt >file &&
     - 	 git update-index --assume-unchanged file &&
     --	 test_must_fail git checkout master'
     -+	 test_must_fail git checkout main'
     - 
     - test_done
     -
       ## t/t2400-worktree-add.sh ##
     +@@
     + 
     + test_description='test git worktree add'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2400-worktree-add.sh: test_expect_success 'setup' '
       
       test_expect_success '"add" an existing worktree' '
     @@ t/t2400-worktree-add.sh: test_branch_upstream () {
       			"refs/heads/*:refs/remotes/$1/*" &&
      
       ## t/t2401-worktree-prune.sh ##
     +@@
     + 
     + test_description='prune $GIT_DIR/worktrees'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2401-worktree-prune.sh: test_expect_success 'not prune recent checkouts' '
       
       test_expect_success 'not prune proper checkouts' '
     @@ t/t2401-worktree-prune.sh: test_expect_success 'not prune recent checkouts' '
       '
      
       ## t/t2402-worktree-list.sh ##
     +@@
     + 
     + test_description='test git worktree list'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2402-worktree-list.sh: test_expect_success 'rev-parse --git-common-dir on main worktree' '
       test_expect_success 'rev-parse --git-path objects linked worktree' '
       	echo "$(git rev-parse --show-toplevel)/.git/objects" >expect &&
     @@ t/t2402-worktree-list.sh: test_expect_success '"list" all worktrees --porcelain
       	git -C there worktree list >out &&
      
       ## t/t2405-worktree-submodule.sh ##
     +@@
     + 
     + test_description='Combination of submodules and multiple worktrees'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t2405-worktree-submodule.sh: test_expect_success 'add superproject worktree' '
       '
       
     @@ t/t2405-worktree-submodule.sh: test_expect_success 'add superproject worktree an
       	grep "file1 updated" out
       '
       
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TRASH_DIRECTORY" in
     - esac
     - 
     - case "$TEST_NUMBER" in
     --[01]*)
     -+[0-2]*)
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;

4: aee29a0528 ! 5: 090ac6e9a1 t3[0-3]*: adjust the references to the default branch name "main"
@@ Metadata
## Commit message ##
t3[0-3]*: adjust the references to the default branch name "main"

- This trick was performed via
+ Carefully excluding t3040, which sees independent development elsewhere
+ at the time of writing, we transition above-mentioned tests to the
+ default branch name main. This trick was performed via

$ (cd t &&
sed -i -e 's/master/main/g' -e 's/MASTER/MAIN/g' \
- -e 's/Master/Main/g' -- t3[0-3]*.sh t3206/*)
+ -e 's/Master/Main/g' -- t3[0-3]*.sh t3206/* &&
+ git checkout HEAD -- t3040\*)

This allows us to define GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main for those tests.

- ## t/t3040-subprojects-basic.sh ##
-@@ t/t3040-subprojects-basic.sh: test_expect_success 'checkout in superproject' '
- '
+ ## t/t3200-branch.sh ##
+@@

- # just interesting what happened... --# git diff --name-status -M save master -+# git diff --name-status -M save main
+ test_description='git branch assorted tests'

- test_done
-
- ## t/t3200-branch.sh ## +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t3200-branch.sh: test_expect_success 'branch -h in broken repository' '
(
cd broken &&
@@ t/t3200-branch.sh: test_expect_success 'option override configured sort' '
)

## t/t3201-branch-contains.sh ##
+@@
+
+ test_description='branch --contains <commit>, --no-contains <commit> --merged, and --no-merged' +
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t3201-branch-contains.sh: test_expect_success setup '

echo 1 >file &&
@@ t/t3201-branch-contains.sh: test_expect_success 'branch --merged combined with -
EOF

## t/t3202-show-branch-octopus.sh ##
+@@
+
+ test_description='test show-branch with more than 8 heads' +
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t3202-show-branch-octopus.sh: test_expect_success 'setup' '

for i in $numbers
@@ t/t3202-show-branch-octopus.sh: test_expect_success 'setup' '
test_tick &&

## t/t3203-branch-output.sh ##
+@@
+ #!/bin/sh
+
+ test_description='git branch display tests' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t3203-branch-output.sh: test_expect_success 'make remote branches' '
cat >expect <<'EOF'
branch-one
@@ t/t3203-branch-output.sh: test_expect_success '--color overrides auto-color' '
ambiguous $one one

## t/t3204-branch-name-interpretation.sh ##
+@@ t/t3204-branch-name-interpretation.sh: Branch name arguments are usually names which are taken to be inside of
+ refs/heads/, but we interpret some magic syntax like @{-1}, @{upstream}, etc.
+ This script aims to check the behavior of those corner cases.
+ '
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t3204-branch-name-interpretation.sh: test_expect_success 'update branch via @{-1}' '
git branch previous one &&

@@ t/t3204-branch-name-interpretation.sh: test_expect_success 'disallow deleting re
expect_branch refs/remotes/origin/previous one &&

## t/t3205-branch-color.sh ##
-@@ t/t3205-branch-color.sh: test_description='basic branch output coloring' +@@
+ #!/bin/sh
+
+ test_description='basic branch output coloring' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh

test_expect_success 'set up some sample branches' '
test_commit foo &&
@@ t/t3205-branch-color.sh: test_expect_success 'set up some color config' '
test_decode_color <actual.raw >actual &&

## t/t3206-range-diff.sh ##
+@@
+
+ test_description='range-diff tests'
+ +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME +
+ . ./test-lib.sh
@@ t/t3206-range-diff.sh: test_expect_success 'setup' '
'

@@ t/t3206/history.export: mark :11
committer Thomas Rast <[email protected]> 1374485127 +0200

## t/t3210-pack-refs.sh ##
+@@ t/t3210-pack-refs.sh: test_description='git pack-refs should not change the branch semantic
+ This test runs git pack-refs and git show-ref and checks that the branch
+ semantic is still the same.
+ '
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t3210-pack-refs.sh: test_expect_success 'delete ref with dangling packed version' '
git commit --allow-empty -m "future garbage" &&
git pack-refs --all &&
@@ t/t3210-pack-refs.sh: test_expect_success 'retry acquiring packed-refs.lock' '
ln -s my-deviant-packed-refs .git/packed-refs &&

## t/t3211-peel-ref.sh ##
+@@
+ #!/bin/sh
+
+ test_description='tests for the peel_ref optimization of packed-refs' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t3211-peel-ref.sh: print_ref() {

test_expect_success 'set up expected show-ref output' '
@@ t/t3301-notes.sh: test_expect_success 'git notes copy diagnoses too many or too

## t/t3302-notes-index-expensive.sh ##
+@@
+
+ test_description='Test commit notes index (expensive!)' +
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t3302-notes-index-expensive.sh: create_repo () {
notemark=$(($mark+1)) test_tick &&
@@ t/t3302-notes-index-expensive.sh: create_repo () {
data <<COMMIT

## t/t3303-notes-subtrees.sh ##
+@@
+
+ test_description='Test commit notes organized in subtrees'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t3303-notes-subtrees.sh: test_expect_success "setup: create $number_of_commits commits" '
nr=$(($nr+1)) &&
test_tick &&
@@ t/t3303-notes-subtrees.sh: test_concatenated_notes () {
second_note_path=$(echo "$sha1" | sed "$2")

## t/t3304-notes-mixed.sh ##
+@@
+
+ test_description='Test notes trees that also contain non-notes'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t3304-notes-mixed.sh: test_expect_success "setup: create a couple of commits" '

test_tick &&
@@ t/t3308-notes-merge.sh: test_expect_success 'fail to merge into various non-note
test_must_fail git -c "core.notesRef=refs/notes/foo^{bar" notes merge x

## t/t3320-notes-merge-worktrees.sh ##
+@@
+
+ test_description='Test merging of notes trees in multiple worktrees'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t3320-notes-merge-worktrees.sh: test_expect_success 'modify notes ref ourselves (x)' '
'

@@ t/t3320-notes-merge-worktrees.sh: test_expect_success 'modify notes ref ourselve
'

test_expect_success 'merge z into y fails and sets NOTES_MERGE_REF' '
-
- ## t/test-lib.sh ##
-@@ t/test-lib.sh: case "$TRASH_DIRECTORY" in
- esac
-
- case "$TEST_NUMBER" in
--[0-2]*)
-+[0-2]*|3[0-3]*)
- GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
- export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
- ;;
5: 041ad86e33 ! 6: c8494f4602 t3416: preemptively adjust alignment in a comment
@@ Commit message

## t/t3416-rebase-onto-threedots.sh ##
-@@ t/t3416-rebase-onto-threedots.sh: test_description='git rebase --onto A...B' +@@ t/t3416-rebase-onto-threedots.sh: export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
#
# F---G topic G'
# / /
6: 2f62b3f469 ! 7: c0d02e4d9d t34*: adjust the references to the default branch name "main"

     @@ Commit message
          Signed-off-by: Johannes Schindelin <[email protected]>
      
       ## t/t3400-rebase.sh ##
     +@@ t/t3400-rebase.sh: test_description='git rebase assorted tests
     + This test runs git rebase and checks that the author information is not lost
     + among other things.
     + '
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3400-rebase.sh: test_expect_success 'prepare repository with topic branches' '
       	git update-index --add Y &&
       	git commit -m "Add Y." &&
     @@ t/t3400-rebase.sh: test_expect_success 'rebase -c rebase.useBuiltin=false warnin
       
      
       ## t/t3402-rebase-merge.sh ##
     +@@
     + 
     + test_description='git rebase --merge test'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3402-rebase-merge.sh: test_expect_success setup '
       	git commit -m"initial" &&
       	git branch side &&
     @@ t/t3402-rebase-merge.sh: test_expect_success '--reapply-cherry-picks refrains fr
       	git -C client rev-list --objects --all --missing=print >missing_list &&
      
       ## t/t3403-rebase-skip.sh ##
     +@@
     + 
     + test_description='git rebase --merge --skip tests'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3403-rebase-skip.sh: test_expect_success setup '
       	'
       
     @@ t/t3403-rebase-skip.sh: test_expect_success 'rebase moves back to skip-reference
       test_expect_success 'rebase --skip with --merge' '
      
       ## t/t3405-rebase-malformed.sh ##
     +@@
     + 
     + test_description='rebase should handle arbitrary git message'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3405-rebase-malformed.sh: test_expect_success setup '
       	git add file3 &&
       	git commit --allow-empty-message -m "" &&
     @@ t/t3405-rebase-malformed.sh: test_expect_success 'rebase commit with multi-line
       test_expect_success 'rebase -i commit with empty message' '
      
       ## t/t3406-rebase-message.sh ##
     +@@
     + 
     + test_description='messages from rebase operation'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3406-rebase-message.sh: test_expect_success 'setup' '
       '
       
     @@ t/t3406-rebase-message.sh: test_expect_success 'rebase -i onto unrelated history
       	test_i18ngrep "5 files changed" actual
      
       ## t/t3407-rebase-abort.sh ##
     +@@
     + 
     + test_description='git rebase --abort tests'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3407-rebase-abort.sh: testrebase() {
       		cd "$work_dir" &&
       		# Clean up the state from the previous one
     @@ t/t3407-rebase-abort.sh: test_expect_success 'rebase --merge --quit' '
       	git rebase --quit &&
      
       ## t/t3408-rebase-multi-line.sh ##
     +@@
     + 
     + test_description='rebasing a commit with multi-line first paragraph.'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3408-rebase-multi-line.sh: But otherwise with a sane description." side2 &&
       test_expect_success rebase '
       
     @@ t/t3408-rebase-multi-line.sh: But otherwise with a sane description." side2 &&
       	test_cmp expect actual
      
       ## t/t3409-rebase-preserve-merges.sh ##
     +@@ t/t3409-rebase-preserve-merges.sh: test_description='git rebase -p should preserve merges
     + 
     + Run "git rebase -p" and check that merges are properly carried along
     + '
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3409-rebase-preserve-merges.sh: export GIT_AUTHOR_EMAIL
       
       # Clone 2 (conflicting merge):
     @@ t/t3409-rebase-preserve-merges.sh: test_expect_success 'setup for merge-preservi
       	git clone ./. clone3 &&
      
       ## t/t3412-rebase-root.sh ##
     +@@ t/t3412-rebase-root.sh: test_description='git rebase --root
     + 
     + Tests if git rebase --root --onto <newparent> can rebase the root commit.
     + '
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3412-rebase-root.sh: test_expect_success 'prepare repository' '
       
       test_expect_success 'rebase --root fails with too many args' '
     @@ t/t3412-rebase-root.sh: EOF
       
      
       ## t/t3413-rebase-hook.sh ##
     +@@
     + 
     + test_description='git rebase with its hook(s)'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3413-rebase-hook.sh: test_expect_success setup '
       	git add git &&
       	test_tick &&
     @@ t/t3413-rebase-hook.sh: test_expect_success 'rebase --no-verify overrides pre-re
       '
      
       ## t/t3415-rebase-autosquash.sh ##
     +@@
     + 
     + test_description='auto squash'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3415-rebase-autosquash.sh: test_expect_success 'wrapped original subject' '
       
       test_expect_success 'abort last squash' '
     @@ t/t3415-rebase-autosquash.sh: test_expect_success 'wrapped original subject' '
       	git commit --allow-empty -m first &&
      
       ## t/t3416-rebase-onto-threedots.sh ##
     -@@ t/t3416-rebase-onto-threedots.sh: test_description='git rebase --onto A...B'
     +@@
     + 
     + test_description='git rebase --onto A...B'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
       . ./test-lib.sh
       . "$TEST_DIRECTORY/lib-rebase.sh"
       
     @@ t/t3416-rebase-onto-threedots.sh: test_expect_success 'rebase -i --keep-base mas
       test_done
      
       ## t/t3418-rebase-continue.sh ##
     +@@
     + 
     + test_description='git rebase --continue tests'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3418-rebase-continue.sh: test_expect_success 'setup' '
       	git checkout -b topic HEAD^ &&
       	test_commit "commit-new-file-F2-on-topic-branch" F2 22 &&
     @@ t/t3418-rebase-continue.sh: test_rerere_autoupdate () {
       		git add F2 &&
      
       ## t/t3419-rebase-patch-id.sh ##
     +@@
     + 
     + test_description='git rebase - test patch id computation'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3419-rebase-patch-id.sh: test_expect_success 'setup' '
       
       test_expect_success 'setup: 500 lines' '
     @@ t/t3419-rebase-patch-id.sh: test_expect_success 'setup attributes' '
       	git commit -q -m squashed &&
      
       ## t/t3420-rebase-autostash.sh ##
     +@@
     + #
     + 
     + test_description='git rebase --autostash tests'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3420-rebase-autostash.sh: test_expect_success setup '
       	git add . &&
       	test_tick &&
     @@ t/t3423-rebase-reword.sh: test_expect_success 'reword after a conflict preserves
       	git add file-2 &&
      
       ## t/t3427-rebase-subtree.sh ##
     +@@ t/t3427-rebase-subtree.sh: test_description='git rebase tests for -Xsubtree
     + 
     + This test runs git rebase and tests the subtree strategy.
     + '
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3427-rebase-subtree.sh: commit_message() {
       #
       # topic_1 - topic_2 - topic_3
     @@ t/t3430-rebase-merges.sh: Initial setup:
          \    \       /
           \    F - G                (second)
            \
     +       Conflicting-G
     + '
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3430-rebase-merges.sh: test_expect_success 'setup' '
       	git checkout -b first &&
       	test_commit B &&
     @@ t/t3430-rebase-merges.sh: test_expect_success 'labels that are object IDs are re
       	git commit -m "Merge commit '\''$third'\'' into labels" &&
      
       ## t/t3431-rebase-fork-point.sh ##
     -@@ t/t3431-rebase-fork-point.sh: test_description='git rebase --fork-point test'
     +@@
     + 
     + test_description='git rebase --fork-point test'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
       
       . ./test-lib.sh
       
     @@ t/t3431-rebase-fork-point.sh: test_rebase 'G F C E D B A' --no-fork-point
       	git tag one &&
      
       ## t/t3432-rebase-fast-forward.sh ##
     +@@
     + 
     + test_description='ensure rebase fast-forwards commits when possible'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3432-rebase-fast-forward.sh: test_rebase_same_head_ () {
       
       changes='no changes'
     @@ t/t3434-rebase-i18n.sh: test_description='rebase with changing encoding
        \
         3 - 4            first
          \
     +     5 - 6          second
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3434-rebase-i18n.sh: test_expect_success 'rebase --rebase-merges update encoding eucJP to UTF-8' '
       	git config i18n.commitencoding eucJP &&
       	git merge -F "$TEST_DIRECTORY/t3434/eucJP.txt" second &&
     @@ t/t3434-rebase-i18n.sh: test_rebase_continue_update_encode () {
       		git add two.t &&
      
       ## t/t3435-rebase-gpg-sign.sh ##
     +@@
     + 
     + test_description='test rebase --[no-]gpg-sign'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3435-rebase-gpg-sign.sh: test_expect_success 'setup: merge commit' '
       	test_commit fork-point &&
       	git switch -c side &&
     @@ t/t3436-rebase-more-options.sh: test_expect_success 'setup' '
       	rm foo &&
       	test_write_lines "line 1" "        line 2" "line 3" >file &&
       	git commit -am "add file" &&
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TRASH_DIRECTORY" in
     - esac
     - 
     - case "$TEST_NUMBER" in
     --[0-2]*|3[0-3]*)
     -+3404)
     -+	# Avoid conflicts with patch series that are cooking at the same time
     -+	# as the patch series changing the default of `init.defaultBranch`.
     -+	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     -+	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     -+	;;
     -+[0-2]*|3[0-4]*)
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
  7:  0cf754646e !  8:  db3a104750 t3[5-9]*: adjust the references to the default branch name "main"
     @@ t/t3500-cherry.sh
      +This test cherry-picks one local change of two into main branch, and
       checks that git cherry only returns the second patch in the local branch
       '
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
       . ./test-lib.sh
      @@ t/t3500-cherry.sh: test_expect_success \
            test_tick &&
     @@ t/t3500-cherry.sh: test_expect_success \
       test_expect_success 'cherry ignores whitespace' '
      
       ## t/t3501-revert-cherry-pick.sh ##
     +@@ t/t3501-revert-cherry-pick.sh: test_description='test cherry-pick and revert with renames
     + 
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3501-revert-cherry-pick.sh: test_expect_success 'cherry-pick on unborn branch' '
       test_expect_success 'cherry-pick "-" to pick from previous branch' '
       	git checkout unborn &&
     @@ t/t3501-revert-cherry-pick.sh: test_expect_success 'cherry-pick "-" is meaningle
       	git cat-file commit HEAD | grep ^Signed-off-by: >signoff &&
      
       ## t/t3502-cherry-pick-merge.sh ##
     +@@ t/t3502-cherry-pick-merge.sh: test_description='cherry picking and reverting a merge
     + 
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3502-cherry-pick-merge.sh: test_expect_success setup '
       	echo new line >B &&
       	git commit -m "add line to B" B &&
     @@ t/t3502-cherry-pick-merge.sh: test_expect_success setup '
       
      
       ## t/t3503-cherry-pick-root.sh ##
     +@@
     + 
     + test_description='test cherry-picking (and reverting) a root commit'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3503-cherry-pick-root.sh: test_expect_success setup '
       test_expect_success 'cherry-pick a root commit' '
       
     @@ t/t3503-cherry-pick-root.sh: test_expect_success 'cherry-pick two root commits'
       	test_cmp expect.file2 file2 &&
      
       ## t/t3504-cherry-pick-rerere.sh ##
     -@@ t/t3504-cherry-pick-rerere.sh: test_description='cherry-pick should rerere for conflicts'
     +@@
     + 
     + test_description='cherry-pick should rerere for conflicts'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
       
       test_expect_success setup '
       	test_commit foo &&
     @@ t/t3504-cherry-pick-rerere.sh: test_expect_success 'cherry-pick --continue rejec
       test_done
      
       ## t/t3505-cherry-pick-empty.sh ##
     +@@
     + 
     + test_description='test cherry-picking an empty commit'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3505-cherry-pick-empty.sh: test_expect_success setup '
       	test_tick &&
       	git commit --allow-empty-message -m "" &&
     @@ t/t3505-cherry-pick-empty.sh: test_expect_success 'cherry-pick a commit that bec
       
      
       ## t/t3506-cherry-pick-ff.sh ##
     +@@
     + 
     + test_description='test cherry-picking with --ff option'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3506-cherry-pick-ff.sh: test_expect_success setup '
       '
       
     @@ t/t3506-cherry-pick-ff.sh: test_expect_success 'merge setup' '
       	git checkout -b new A
      
       ## t/t3507-cherry-pick-conflict.sh ##
     +@@ t/t3507-cherry-pick-conflict.sh: test_description='test cherry-pick and revert with conflicts
     + 
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3507-cherry-pick-conflict.sh: test_expect_success setup '
       	test_commit redundant-pick foo c redundant &&
       	git commit --allow-empty --allow-empty-message &&
     @@ t/t3507-cherry-pick-conflict.sh: test_expect_success setup '
       '
      
       ## t/t3508-cherry-pick-many-commits.sh ##
     +@@
     + 
     + test_description='test cherry-picking many commits'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3508-cherry-pick-many-commits.sh: test_expect_success setup '
       '
       
     @@ t/t3508-cherry-pick-many-commits.sh: test_expect_success 'cherry-pick -3 fourth
       	git rev-list --reverse first..fourth | git cherry-pick --stdin &&
      
       ## t/t3509-cherry-pick-merge-df.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='Test cherry-pick with directory/file conflicts'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3509-cherry-pick-merge-df.sh: test_expect_success 'Setup rename across paths each below D/F conflicts' '
       
       test_expect_success 'Cherry-pick succeeds with rename across D/F conflicts' '
     @@ t/t3509-cherry-pick-merge-df.sh: test_expect_success 'Setup rename across paths
       
      
       ## t/t3512-cherry-pick-submodule.sh ##
     +@@
     + 
     + test_description='cherry-pick can handle submodules'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3512-cherry-pick-submodule.sh: test_expect_success 'unrelated submodule/file conflict is ignored' '
       		git add a_file &&
       		git commit -m "modify a file" &&
     @@ t/t3512-cherry-pick-submodule.sh: test_expect_success 'unrelated submodule/file
       		git submodule update sub &&
      
       ## t/t3600-rm.sh ##
     +@@
     + 
     + test_description='Test of the various options to git rm.'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3600-rm.sh: test_expect_success 'setup submodule conflict' '
       	echo 1 >nitfol &&
       	git add nitfol &&
     @@ t/t3600-rm.sh: test_expect_success 'checking out a commit after submodule remova
       	echo "?? submod/" >expected &&
      
       ## t/t3701-add-interactive.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='add -i basic tests'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3701-add-interactive.sh: test_expect_success 'patch mode ignores unmerged entries' '
       	test_commit non-conflict &&
       	git checkout -b side &&
     @@ t/t3701-add-interactive.sh: test_expect_success 'patch mode ignores unmerged ent
       	echo y | git add -p >output &&
      
       ## t/t3901-i18n-patch.sh ##
     +@@
     + 
     + test_description='i18n settings and format-patch | am pipe'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3901-i18n-patch.sh: test_expect_success setup '
       
       	# the first commit on the side branch is UTF-8
     @@ t/t3901-i18n-patch.sh: test_expect_success !MINGW 'am (L/U)' '
       	git am out-u1 out-u2 &&
      
       ## t/t3903-stash.sh ##
     +@@
     + 
     + test_description='Test git stash'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3903-stash.sh: test_expect_success 'stash branch' '
       	git commit file -m second &&
       	git stash branch stashbranch &&
     @@ t/t3903-stash.sh: test_expect_success 'create with multiple arguments for the me
       	git add foo &&
      
       ## t/t3910-mac-os-precompose.sh ##
     +@@
     + 
     + test_description='utf-8 decomposed (nfd) converted to precomposed (nfc)'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t3910-mac-os-precompose.sh: test_expect_success "git checkout link nfd" '
       	git checkout l.$Odiarnfd
       '
     @@ t/t3910-mac-os-precompose.sh: test_expect_success "Add long decomposed filename"
       	git reset --hard &&
       	git checkout -b mac_os_long_nfc_fn
       '
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TEST_NUMBER" in
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
     --[0-2]*|3[0-4]*)
     -+[0-3]*)
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
  8:  cf6c1d1d83 !  9:  0164eb9745 t4*: adjust the references to the default branch name "main"
     @@ Metadata
       ## Commit message ##
          t4*: adjust the references to the default branch name "main"
      
     -    Carefully excluding t4013, which sees independent development elsewhere
     -    at the time of writing, we use `main` as the default branch name in t4*.
     -    This trick was performed via
     +    Carefully excluding t4013 and t4015, which see independent development
     +    elsewhere at the time of writing, we use `main` as the default branch
     +    name in t4*. This trick was performed via
      
                  $ (cd t &&
                     sed -i -e 's/master/main/g' -e 's/MASTER/MAIN/g' \
     @@ Commit message
          Signed-off-by: Johannes Schindelin <[email protected]>
      
       ## t/t4014-format-patch.sh ##
     +@@
     + 
     + test_description='various format-patch tests'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4014-format-patch.sh: test_expect_success setup '
       	test_tick &&
       	git commit -m "Side changes #3 with \\n backslash-n in it." &&
     @@ t/t4014-format-patch.sh: test_expect_success 'format-patch --pretty=mboxrd' '
       	test_commit fleep blorp
       '
      
     - ## t/t4015-diff-whitespace.sh ##
     -@@ t/t4015-diff-whitespace.sh: test_expect_success 'combined diff with autocrlf conversion' '
     - 	echo >x goodbye &&
     - 	git commit -m "the other side" x &&
     - 	git config core.autocrlf true &&
     --	test_must_fail git merge master &&
     -+	test_must_fail git merge main &&
     - 
     - 	git diff >actual.raw &&
     - 	sed -e "1,/^@@@/d" actual.raw >actual &&
     -
       ## t/t4017-diff-retval.sh ##
     +@@
     + 
     + test_description='Return value of diffs'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4017-diff-retval.sh: test_expect_success 'check detects leftover conflict markers' '
       	git checkout HEAD^ &&
       	echo binary >>b &&
     @@ t/t4017-diff-retval.sh: test_expect_success 'check detects leftover conflict mar
       	test 3 = $(grep "conflict marker" test.out | wc -l) &&
      
       ## t/t4038-diff-combined.sh ##
     +@@
     + 
     + test_description='combined diff'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4038-diff-combined.sh: test_expect_success 'check --cc --raw with forty trees' '
       '
       
     @@ t/t4038-diff-combined.sh: test_expect_success 'combine diff gets tree sorting ri
       	printf "MM\tfoo\n" >expect &&
      
       ## t/t4041-diff-submodule-option.sh ##
     +@@ t/t4041-diff-submodule-option.sh: test_description='Support for verbose submodule differences in git diff
     + This test tries to verify the sanity of the --submodule option of git diff.
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4041-diff-submodule-option.sh: test_expect_success 'diff --submodule with objects referenced by alternates' '
       	(cd super &&
       		(cd sub &&
     @@ t/t4041-diff-submodule-option.sh: test_expect_success 'diff --submodule with obj
       	) &&
      
       ## t/t4048-diff-combined-binary.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='combined and merge diff handle binary files and textconv'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4048-diff-combined-binary.sh: test_expect_success 'setup binary merge conflict' '
       	echo threeQ3 | q_to_nul >binary &&
       	git commit -a -m three &&
     @@ t/t4048-diff-combined-binary.sh: index $three,$two..0000000
       '
      
       ## t/t4052-stat-output.sh ##
     +@@
     + 
     + test_description='test --stat output of various commands'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4052-stat-output.sh: cat >expect <<'EOF'
       EOF
       test_expect_success 'merge --stat respects COLUMNS (big change)' '
     @@ t/t4052-stat-output.sh: cat >expect <<'EOF'
       '
      
       ## t/t4056-diff-order.sh ##
     +@@
     + 
     + test_description='diff order'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4056-diff-order.sh: done
       test_expect_success 'setup for testing combine-diff order' '
       	git checkout -b tmp HEAD~ &&
     @@ t/t4056-diff-order.sh: done
       '
      
       ## t/t4057-diff-combined-paths.sh ##
     +@@
     + 
     + test_description='combined diff show only paths that are different to all parents'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4057-diff-combined-paths.sh: test_expect_success 'trivial merge - combine-diff empty' '
       		echo $i/2 >>$i.txt
       	done &&
     @@ t/t4057-diff-combined-paths.sh: test_expect_success 'merge removed a file' '
       	git commit --amend &&
      
       ## t/t4061-diff-indent.sh ##
     +@@
     + test_description='Test diff indent heuristic.
     + 
     + '
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4061-diff-indent.sh: test_expect_success 'diff-index: nice spaces with --indent-heuristic' '
       	git reset --soft HEAD~ &&
       	git diff-index --indent-heuristic -p old -- spaces.txt >out-diff-index-compacted &&
     @@ t/t4061-diff-indent.sh: test_expect_success 'diff-files: --no-indent-heuristic o
       test_done
      
       ## t/t4066-diff-emit-delay.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='test combined/stat/moved interaction'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4066-diff-emit-delay.sh: test_expect_success 'set up history with a merge' '
       	test_commit B &&
       	git checkout -b side HEAD^ &&
     @@ t/t4066-diff-emit-delay.sh: test_expect_success 'set up history with a merge' '
       
      
       ## t/t4068-diff-symmetric-merge-base.sh ##
     -@@ t/t4068-diff-symmetric-merge-base.sh: test_description='behavior of diff with symmetric-diff setups and --merge-base'
     +@@
     + 
     + test_description='behavior of diff with symmetric-diff setups and --merge-base'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
       
       # build these situations:
       #  - normal merge with one merge base (br1...b2r);
     @@ t/t4068-diff-symmetric-merge-base.sh: do
       
      
       ## t/t4103-apply-binary.sh ##
     +@@
     + test_description='git apply handling binary patches
     + 
     + '
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4103-apply-binary.sh: test_expect_success 'setup' '
       	git update-index --add --remove file1 file2 file3 file4 &&
       	git commit -m "Second Version" &&
     @@ t/t4103-apply-binary.sh: test_expect_success 'check binary diff with replacement
       test_expect_success 'apply binary diff -- should fail.' \
      
       ## t/t4108-apply-threeway.sh ##
     +@@
     + 
     + test_description='git apply --3way'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4108-apply-threeway.sh: test_expect_success setup '
       	test_tick &&
       	test_write_lines 1 two 3 4 5 six 7 >one &&
     @@ t/t4108-apply-threeway.sh: test_expect_success 'apply with --3way with rerere en
       	# but rerere should have replayed the recorded resolution
      
       ## t/t4121-apply-diffs.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='git apply for contextually independent diffs'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4121-apply-diffs.sh: test_expect_success 'setup' \
       	git commit -a -q -m 2 &&
       	echo 9 >>file &&
     @@ t/t4121-apply-diffs.sh: test_expect_success 'setup' \
       	'check if contextually independent diffs for the same file apply' \
      
       ## t/t4122-apply-symlink-inside.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='apply to deeper directory without getting fooled with symlink'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4122-apply-symlink-inside.sh: test_expect_success apply '
       
       test_expect_success 'check result' '
     @@ t/t4122-apply-symlink-inside.sh: test_expect_success apply '
       
      
       ## t/t4150-am.sh ##
     +@@
     + 
     + test_description='git am running'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4150-am.sh: test_expect_success setup '
       	test_tick &&
       	git commit -m "added another file" &&
     @@ t/t4200-rerere.sh: test_description='git rerere
      +++++++ [main] initial
       '
       
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
       . ./test-lib.sh
      @@ t/t4200-rerere.sh: test_expect_success 'setup' '
       	test_tick &&
     @@ t/t4200-rerere.sh: test_expect_success 'setup simple stage 1 handling' '
       	)
      
       ## t/t4201-shortlog.sh ##
     +@@
     + test_description='git shortlog
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4201-shortlog.sh: test_expect_success 'shortlog with revision pseudo options' '
       '
       
     @@ t/t4201-shortlog.sh: test_expect_success 'shortlog with revision pseudo options'
       '
      
       ## t/t4202-log.sh ##
     +@@
     + 
     + test_description='git log'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4202-log.sh: test_expect_success 'set up merge history' '
       	git checkout -b side HEAD~4 &&
       	test_commit side-1 1 1 &&
     @@ t/t4202-log.sh: test_expect_success 'log diagnoses bogus HEAD' '
       	echo "ref: refs/heads/invalid.lock" >empty/.git/HEAD &&
      
       ## t/t4203-mailmap.sh ##
     +@@
     + 
     + test_description='.mailmap configurations'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4203-mailmap.sh: test_expect_success 'No mailmap files, but configured' '
       
       test_expect_success 'setup mailmap blob tests' '
     @@ t/t4203-mailmap.sh: test_expect_success 'No mailmap files, but configured' '
       	EOF
      
       ## t/t4204-patch-id.sh ##
     +@@
     + 
     + test_description='git patch-id'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4204-patch-id.sh: test_expect_success 'setup' '
       	test_write_lines $as b >foo &&
       	test_write_lines $as b >bar &&
     @@ t/t4204-patch-id.sh: test_expect_success '--stable overrides patchid.stable = fa
       test_expect_success 'patch-id respects config from subdir' '
      
       ## t/t4207-log-decoration-colors.sh ##
     +@@
     + 
     + test_description='Test for "git log --decorate" colors'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4207-log-decoration-colors.sh: test_expect_success setup '
       
       cat >expected <<EOF
     @@ t/t4207-log-decoration-colors.sh: test_expect_success setup '
       
      
       ## t/t4208-log-magic-pathspec.sh ##
     +@@
     + 
     + test_description='magic pathspec tests using git-log'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4208-log-magic-pathspec.sh: test_expect_success '"git log :/a -- " should not be ambiguous' '
       '
       
     @@ t/t4208-log-magic-pathspec.sh: test_expect_success 'command line pathspec parsin
       	git log --merge -- a
       '
      
     + ## t/t4211-line-log.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='test log -L'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
     +
       ## t/t4211/history.export ##
      @@ t/t4211/history.export: long f(long x)
       	return s;
     @@ t/t4211/history.export: long f(long x)
       committer Thomas Rast <[email protected]> 1362045024 +0100
      
       ## t/t4214-log-graph-octopus.sh ##
     +@@
     + 
     + test_description='git log --graph of skewed left octopus merge.'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4214-log-graph-octopus.sh: test_cmp_colored_graph () {
       test_expect_success 'set up merge history' '
       	test_commit initial &&
     @@ t/t4214-log-graph-octopus.sh: test_cmp_colored_graph () {
       		test_commit $i $i $i tag$i || return $?
      
       ## t/t4216-log-bloom.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='git log for a path with Bloom filters'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4216-log-bloom.sh: test_expect_success 'setup test - repo, commits, commit graph, log outputs' '
       	test_commit c10 file_to_be_deleted &&
       	git checkout -b side HEAD~4 &&
     @@ t/t4216-log-bloom.sh: do
       			test_bloom_filters_used "$option -- $path" &&
      
       ## t/t4253-am-keep-cr-dos.sh ##
     +@@
     + test_description='git-am mbox with dos line ending.
     + 
     + '
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t4253-am-keep-cr-dos.sh: test_expect_success 'setup repository with dos files' '
       
       test_expect_success 'am with dos files without --keep-cr' '
     @@ t/t4257-am-interactive.sh: test_expect_success 'set up patches to apply' '
       '
       
       # Sanity check our setup.
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TRASH_DIRECTORY" in
     - esac
     - 
     - case "$TEST_NUMBER" in
     --3404)
     -+3404|4013)
     - 	# Avoid conflicts with patch series that are cooking at the same time
     - 	# as the patch series changing the default of `init.defaultBranch`.
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
     --[0-3]*)
     -+[0-4]*)
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
  9:  6ff4594a28 = 10:  36d633a5ec t5323: prepare centered comment for `master` -> `main`
 10:  be29e07892 ! 11:  d9d1d14681 t5[0-4]*: adjust the references to the default branch name "main"

@@ Commit message

## t/t5150-request-pull.sh ##
+@@
+
+ test_description='Test workflows involving pull request.'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t5150-request-pull.sh: test_expect_success 'setup' '
test_tick &&
git commit -m "\"Thirty days\", a reminder of month lengths" &&
@@ t/t5150-request-pull.sh: test_expect_success 'pull request with stale object' '
test_must_fail git request-pull initial "$downstream_url" tags/full \

## t/t5304-prune.sh ##
+@@
+ #
+
+ test_description='prune'
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t5304-prune.sh: test_expect_success 'prune: do not prune detached HEAD with no reflog' '
test_expect_success 'prune: prune former HEAD after checking out branch' '

@@ t/t5304-prune.sh: test_expect_success 'prune: do not prune detached HEAD with no

## t/t5305-include-tag.sh ##
+@@
+ #!/bin/sh
+
+ test_description='git pack-object --include-tag' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t5305-include-tag.sh: test_expect_success 'check unpacked result (have all objects)' '

test_expect_success 'single-branch clone can transfer tag' '
@@ t/t5305-include-tag.sh: test_expect_success 'check unpacked result (have all obj

## t/t5312-prune-corruption.sh ##
+@@ t/t5312-prune-corruption.sh: bail out or to proceed using it as a reachable tip, but it is _not_
+ OK to proceed as if it did not exist. Otherwise we might silently
+ delete objects that cannot be recovered.
+ '
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t5312-prune-corruption.sh: test_expect_success 'disable reflogs' '
'

@@ t/t5312-prune-corruption.sh: test_expect_success 'pack-refs does not silently de

## t/t5317-pack-objects-filter-objects.sh ##
+@@
+
+ test_description='git pack-objects using object filtering'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t5317-pack-objects-filter-objects.sh: test_expect_success 'verify sparse:oid=oid-ish' '
awk -f print_2.awk ls_files_result |
sort >expected &&
@@ t/t5317-pack-objects-filter-objects.sh: test_expect_success 'verify sparse:oid=o
git -C r4 index-pack ../filter.pack &&

## t/t5322-pack-objects-sparse.sh ##
+@@
+ #!/bin/sh
+
+ test_description='pack-objects object selection using sparse algorithm' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t5322-pack-objects-sparse.sh: test_expect_success 'setup repo' '
git commit -m "Initialized trees" &&
for i in $(test_seq 1 3)
@@ t/t5323-pack-redundant.sh: test_expect_success 'shared: one pack is redundant wi
# P1 | x x x x x x x x |

## t/t5400-send-pack.sh ##
+@@
+ test_description='See why rewinding head breaks send-pack
+
+ '
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t5400-send-pack.sh: test_expect_success 'pack the destination repository' '
'

@@ t/t5401-update-hooks.sh: test_expect_success 'pre-receive hook that forgets to r
'

## t/t5402-post-merge-hook.sh ##
+@@
+ #
+
+ test_description='Test the post-merge hook.' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t5402-post-merge-hook.sh: test_expect_success setup '
git update-index a &&
tree1=$(git write-tree) &&
@@ t/t5402-post-merge-hook.sh: test_expect_success setup '
git clone ./. clone2 &&

## t/t5403-post-checkout-hook.sh ##
+@@
+ #
+
+ test_description='Test the post-checkout hook.' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t5403-post-checkout-hook.sh: test_expect_success setup '

test_expect_success 'post-checkout receives the right arguments with HEAD unchanged ' '
@@ t/t5403-post-checkout-hook.sh: test_expect_success 'post-checkout receives the r
read old new flag <.git/post-checkout.args &&

## t/t5404-tracking-branches.sh ##
+@@
+
+ test_description='tracking branch update checks for git push'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t5404-tracking-branches.sh: test_expect_success 'prepare pushable branches' '
git checkout -b b2 origin/b2 &&
echo aa-b2 >>file &&
@@ t/t5404-tracking-branches.sh: test_expect_success 'mixed-success push returns er
test_expect_success 'check tracking branches not updated for failed refs' '

## t/t5405-send-pack-rewind.sh ##
+@@
+
+ test_description='forced push to replace commit we do not have'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t5405-send-pack-rewind.sh: test_expect_success setup '
mkdir another && (
cd another &&
@@ t/t5405-send-pack-rewind.sh: test_expect_success 'forced push should succeed' '
'

## t/t5407-post-rewrite-hook.sh ##
+@@
+ #
+
+ test_description='Test the post-rewrite hook.' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t5407-post-rewrite-hook.sh: test_expect_success 'setup' '
git checkout A^0 &&
test_commit E bar E &&
@@ t/t5407-post-rewrite-hook.sh: test_expect_success 'setup' '
mkdir .git/hooks

## t/t5410-receive-pack-alternates.sh ##
-@@ t/t5410-receive-pack-alternates.sh: test_description='git receive-pack with alternate ref filtering' +@@
+
+ test_description='git receive-pack with alternate ref filtering'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
+@@ t/t5410-receive-pack-alternates.sh: export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
test_expect_success 'setup' '
test_commit base &&
git clone -s --bare . fork &&
@@ t/t5410-receive-pack-alternates.sh: test_description='git receive-pack with alte
test_commit private
'

-
- ## t/test-lib.sh ##
-@@ t/test-lib.sh: case "$TRASH_DIRECTORY" in
- esac
-
- case "$TEST_NUMBER" in
--3404|4013)
-+3404|4013|5310)
- # Avoid conflicts with patch series that are cooking at the same time
- # as the patch series changing the default of init.defaultBranch.
- GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
- export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
- ;;
--[0-4]*)
-+[0-4]*|5[0-4]*)
- GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
- export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
- ;;
11: 5126d90a32 ! 12: f7a9bc07c7 t5503: prepare aligned comment for replacing master with main
@@ Commit message

## t/t5503-tagfollow.sh ##
-@@ t/t5503-tagfollow.sh: test_description='test automatic tag following' +@@ t/t5503-tagfollow.sh: export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
# L - A ------ O ------ B
# \ \ \
# \ C - origin/cat \
12: 332677cbf9 ! 13: 4d7eb7dc28 t550*: adjust the references to the default branch name "main"

     @@ Commit message
          Signed-off-by: Johannes Schindelin <[email protected]>
      
       ## t/t5500-fetch-pack.sh ##
     +@@
     + 
     + test_description='Testing multi_ack pack fetching'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5500-fetch-pack.sh: test_expect_success 'in_vain resetted upon ACK' '
       	rm -rf myserver myclient &&
       	git init myserver &&
     @@ t/t5500-fetch-pack.sh: test_expect_success 'fetching deepen' '
       	three
      
       ## t/t5501-fetch-push-alternates.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='fetch/push involving alternates'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5501-fetch-push-alternates.sh: test_expect_success setup '
       test_expect_success 'pushing into a repository with the same alternate' '
       	(
     @@ t/t5501-fetch-push-alternates.sh: test_expect_success 'pushing into a repository
       	test_cmp one.count fetcher.count
      
       ## t/t5502-quickfetch.sh ##
     +@@
     + 
     + test_description='test quickfetch from local'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5502-quickfetch.sh: test_expect_success 'quickfetch should not copy from alternate' '
       				q
       			}"
     @@ t/t5502-quickfetch.sh: test_expect_success 'quickfetch should not copy from alte
       
      
       ## t/t5503-tagfollow.sh ##
     -@@ t/t5503-tagfollow.sh: test_description='test automatic tag following'
     +@@
     + 
     + test_description='test automatic tag following'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
     +@@ t/t5503-tagfollow.sh: export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
       #   L - A ------ O ------ B
       #    \   \                 \
       #     \   C - origin/cat    \
     @@ t/t5503-tagfollow.sh: test_expect_success 'new clone fetch master and tags' '
       		test $T = $(git rev-parse --verify tag1) &&
      
       ## t/t5504-fetch-receive-strict.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='fetch/receive strict mode'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5504-fetch-receive-strict.sh: test_expect_success 'fetch without strict' '
       		cd dst &&
       		git config fetch.fsckobjects false &&
     @@ t/t5504-fetch-receive-strict.sh: test_expect_success 'push with transfer.fsckobj
       
      
       ## t/t5505-remote.sh ##
     +@@
     + 
     + test_description='git remote porcelain-ish'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5505-remote.sh: setup_repository () {
       	git add elif &&
       	test_tick &&
     @@ t/t5505-remote.sh: test_expect_success 'unqualified <dst> refspec DWIM and advic
       	) &&
      
       ## t/t5506-remote-groups.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='git remote group handling'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5506-remote-groups.sh: repo_fetched() {
       test_expect_success 'setup' '
       	mkdir one && (cd one && git init) &&
     @@ t/t5506-remote-groups.sh: repo_fetched() {
       test_expect_success 'no group updates all' '
      
       ## t/t5509-fetch-push-namespaces.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='fetch/push involving ref namespaces'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5509-fetch-push-namespaces.sh: test_expect_success setup '
       test_expect_success 'pushing into a repository using a ref namespace' '
       	(
     @@ t/t5509-fetch-push-namespaces.sh: test_expect_success 'denyCurrentBranch and unb
       	)
       '
       
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TEST_NUMBER" in
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
     --[0-4]*|5[0-4]*)
     -+[0-4]*|5[0-4]*|550*)
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
 13:  b7333ef201 ! 14:  88b2c30cc8 t551*: adjust the references to the default branch name "main"
     @@ Commit message
          Signed-off-by: Johannes Schindelin <[email protected]>
      
       ## t/t5510-fetch.sh ##
     +@@ t/t5510-fetch.sh: test_description='Per branch config variables affects "git fetch".
     + 
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5510-fetch.sh: test_expect_success "clone and setup child repos" '
       	git clone . two &&
       	(
     @@ t/t5511-refspec.sh: test_refspec push 'refs/heads/master:refs/remotes/frotz/xyzz
       
      
       ## t/t5512-ls-remote.sh ##
     +@@
     + 
     + test_description='git ls-remote'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5512-ls-remote.sh: test_expect_success 'use branch.<name>.remote if possible' '
       	echo "From $URL" >exp_err &&
       
     @@ t/t5512-ls-remote.sh: test_expect_success 'ls-remote --sort fails gracefully out
       
      
       ## t/t5514-fetch-multiple.sh ##
     +@@
     + 
     + test_description='fetch --all works correctly'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5514-fetch-multiple.sh: setup_repository () {
       	git add elif &&
       	test_tick &&
     @@ t/t5514-fetch-multiple.sh: test_expect_success 'git fetch --all (skipFetchAll)'
       
      
       ## t/t5516-fetch-push.sh ##
     +@@ t/t5516-fetch-push.sh: This test checks the following functionality:
     + * reflogs
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5516-fetch-push.sh: test_expect_success setup '
       	git add path1 &&
       	test_tick &&
     @@ t/t5516-fetch-push.sh: test_expect_success 'updateInstead with push-to-checkout
       		git diff --quiet &&
      
       ## t/t5517-push-mirror.sh ##
     +@@
     + 
     + test_description='pushing to a mirror repository'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5517-push-mirror.sh: invert () {
       }
       
     @@ t/t5517-push-mirror.sh: test_expect_success 'remote.foo.mirror=no has no effect'
       
      
       ## t/t5518-fetch-exit-status.sh ##
     +@@
     + 
     + test_description='fetch exit status test'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5518-fetch-exit-status.sh: test_expect_success setup '
       	echo side >file &&
       	git commit -a -m side &&
     @@ t/t5518-fetch-exit-status.sh: test_expect_success setup '
       
      
       ## t/t5519-push-alternates.sh ##
     +@@
     + 
     + test_description='push to a repository that borrows from elsewhere'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5519-push-alternates.sh: test_expect_success setup '
       		>file &&
       		git add . &&
     @@ t/t5519-push-alternates.sh: test_expect_success 'alice works and pushes yet agai
       		# at a commit Bob does not fully know about, but
       		# he happens to have the commit object (but not the
       		# necessary tree) in his repository from Alice.
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TEST_NUMBER" in
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
     --[0-4]*|5[0-4]*|550*)
     -+[0-4]*|5[0-4]*|55[01]*)
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
 14:  4b1b1ee51f ! 15:  3b73811af4 t55[23]*: adjust the references to the default branch name "main"
     @@ Commit message
          Signed-off-by: Johannes Schindelin <[email protected]>
      
       ## t/t5520-pull.sh ##
     +@@
     + 
     + test_description='pulling into void'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5520-pull.sh: test_expect_success 'pulling into void' '
       	test_cmp file cloned/file
       '
     @@ t/t5520-pull.sh: test_expect_success 'setup for avoiding reapplying old patches'
       	rm -rf src &&
      
       ## t/t5521-pull-options.sh ##
     +@@
     + 
     + test_description='pull options'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5521-pull-options.sh: test_expect_success 'git pull --force' '
       	cat >>.git/config <<-\EOF &&
       	[remote "one"]
     @@ t/t5521-pull-options.sh: test_expect_success 'git pull --all --dry-run' '
       	)
      
       ## t/t5523-push-upstream.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='push with --set-upstream'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5523-push-upstream.sh: check_config() {
       	test_cmp expect.$1 actual.$1
       }
     @@ t/t5523-push-upstream.sh: test_expect_success TTY 'push --no-progress suppresses
       
      
       ## t/t5527-fetch-odd-refs.sh ##
     -@@ t/t5527-fetch-odd-refs.sh: test_description='test fetching of oddly-named refs'
     +@@
     + #!/bin/sh
     + 
     + test_description='test fetching of oddly-named refs'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
       
       # afterwards we will have:
       #  HEAD - two
     @@ t/t5527-fetch-odd-refs.sh: test_expect_success LONG_REF 'fetch handles extremely
       
      
       ## t/t5528-push-default.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='check various push.default settings'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5528-push-default.sh: test_push_failure () {
       
       # $1 = success or failure
     @@ t/t5530-upload-pack-error.sh: test_expect_success 'create empty repository' '
       
      
       ## t/t5531-deep-submodule-push.sh ##
     +@@
     + 
     + test_description='test push with submodules'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5531-deep-submodule-push.sh: test_expect_success setup '
       test_expect_success 'push works with recorded gitlink' '
       	(
     @@ t/t5531-deep-submodule-push.sh: test_expect_success 'push propagating refspec to
       	git -C submodule.git rev-parse branch2 >actual_submodule &&
      
       ## t/t5533-push-cas.sh ##
     +@@
     + 
     + test_description='compare & swap push force/delete safety'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5533-push-cas.sh: setup_src_dup_dst () {
       	(
       		cd dup &&
     @@ t/t5533-push-cas.sh: test_expect_success '"--force-if-includes" should allow for
       
      
       ## t/t5534-push-signed.sh ##
     +@@
     + 
     + test_description='signed push'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5534-push-signed.sh: prepare_dst () {
       	rm -fr dst &&
       	test_create_repo dst &&
     @@ t/t5534-push-signed.sh: prepare_dst () {
       
      
       ## t/t5537-fetch-shallow.sh ##
     +@@
     + 
     + test_description='fetch/clone from a shallow clone'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5537-fetch-shallow.sh: test_expect_success 'fetch from shallow clone' '
       	cd shallow2 &&
       	git fetch &&
     @@ t/t5537-fetch-shallow.sh: test_expect_success 'shallow fetches check connectivit
       	! test -e "$HTTPD_ROOT_PATH/one-time-perl" &&
      
       ## t/t5538-push-shallow.sh ##
     +@@
     + 
     + test_description='push from/to a shallow clone'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5538-push-shallow.sh: test_expect_success 'push from shallow clone' '
       	(
       	cd shallow &&
     @@ t/t5538-push-shallow.sh: EOF
       1
      
       ## t/t5539-fetch-http-shallow.sh ##
     +@@
     + 
     + test_description='fetch/clone from a shallow clone over http'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5539-fetch-http-shallow.sh: test_expect_success 'clone http repository' '
       	(
       	cd clone &&
     @@ t/t5539-fetch-http-shallow.sh: test_expect_success 'fetching deepen' '
       	cat >expected <<-\EOF &&
       	four
       	three
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TRASH_DIRECTORY" in
     - esac
     - 
     - case "$TEST_NUMBER" in
     --3404|4013|5310)
     -+3404|4013|5310|5526)
     - 	# Avoid conflicts with patch series that are cooking at the same time
     - 	# as the patch series changing the default of `init.defaultBranch`.
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
     --[0-4]*|5[0-4]*|55[01]*)
     -+[0-4]*|5[0-4]*|55[0-3]*)
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
 15:  c37d97c2d8 ! 16:  5c57fbe695 t55[4-9]*: adjust the references to the default branch name "main"
     @@ Commit message
          Signed-off-by: Johannes Schindelin <[email protected]>
      
       ## t/t5540-http-push-webdav.sh ##
     +@@ t/t5540-http-push-webdav.sh: test_description='test WebDAV http-push
     + 
     + This test runs various sanity checks on http-push.'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5540-http-push-webdav.sh: test_expect_success 'push already up-to-date' '
       test_expect_success 'push to remote repository with unpacked refs' '
       	(cd "$HTTPD_DOCUMENT_ROOT_PATH"/test_repo.git &&
     @@ t/t5540-http-push-webdav.sh: test_expect_success 'PUT and MOVE sends object to U
       	test_commit pw-user &&
      
       ## t/t5541-http-push-smart.sh ##
     +@@
     + #
     + 
     + test_description='test smart pushing over http via http-backend'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5541-http-push-smart.sh: test_expect_success 'used receive-pack service' '
       '
       
     @@ t/t5541-http-push-smart.sh: test_expect_success 'colorize errors/hints' '
       	test_i18ngrep "<RED>error: failed to push some refs" decoded &&
      
       ## t/t5542-push-http-shallow.sh ##
     +@@
     + 
     + test_description='push from/to a shallow clone over http'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5542-push-http-shallow.sh: test_expect_success 'push to shallow repo via http' '
       	(
       	cd full &&
     @@ t/t5542-push-http-shallow.sh: test_expect_success 'push from shallow repo via ht
       4
      
       ## t/t5543-atomic-push.sh ##
     +@@
     + 
     + test_description='pushing to a repository using the atomic push option'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5543-atomic-push.sh: test_expect_success 'atomic push works for a single branch' '
       		test_commit one &&
       		git push --mirror up &&
     @@ t/t5543-atomic-push.sh: test_expect_success 'atomic push reports (mirror, but re
       	test_cmp expect actual
      
       ## t/t5545-push-options.sh ##
     +@@
     + 
     + test_description='pushing to a repository using push options'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5545-push-options.sh: test_expect_success 'one push option works for a single branch' '
       		test_commit one &&
       		git push --mirror up &&
     @@ t/t5548-push-porcelain.sh: run_git_push_porcelain_output_test() {
       		test_cmp expect actual
      
       ## t/t5550-http-fetch-dumb.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='test dumb fetching over http via static file'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5550-http-fetch-dumb.sh: test_expect_success 'create http-accessible bare repository with loose objects'
       	 hooks/post-update
       	) &&
     @@ t/t5550-http-fetch-dumb.sh: test_expect_success 'set up evil alternates scheme'
       # Here we'll just redirect via HTTP. In a real-world attack these would be on
      
       ## t/t5551-http-fetch-smart.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='test smart fetching over http via http-backend'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5551-http-fetch-smart.sh: test_expect_success 'create http-accessible bare repository' '
       	 git --bare init
       	) &&
     @@ t/t5552-skipping-fetch-negotiator.sh: test_expect_success 'use ref advertisement
       	test_config -C client fetch.negotiationalgorithm skipping &&
      
       ## t/t5553-set-upstream.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='"git fetch/pull --set-upstream" basic tests.'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5553-set-upstream.sh: test_expect_success 'setup bare parent fetch' '
       	git remote add upstream parent
       '
     @@ t/t5553-set-upstream.sh: test_expect_success 'pull --set-upstream upstream tag d
       	check_config_missing other2
       '
      
     + ## t/t5560-http-backend-noserver.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='test git-http-backend-noserver'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
     +
       ## t/t5561-http-backend.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='test git-http-backend'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5561-http-backend.sh: POST() {
       
       grep '^[^#]' >exp <<EOF
     @@ t/t556x_common: get_static_files() {
       	get_static_files "200 OK"
      
       ## t/t5570-git-daemon.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='test fetching over git protocol'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5570-git-daemon.sh: test_expect_success 'create git-accessible bare repository' '
       	 : >git-daemon-export-ok
       	) &&
     @@ t/t5570-git-daemon.sh: test_expect_success FAKENC 'hostname interpolation works
       
      
       ## t/t5571-pre-push-hook.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='check pre-push hooks'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5571-pre-push-hook.sh: EOF
       cat >expected <<EOF
       parent1
     @@ t/t5572-pull-submodule.sh: test_expect_success 'branch has no merge base with re
       	git -C child reset --hard "$OTHER" &&
      
       ## t/t5580-unc-paths.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='various Windows-only path tests'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5580-unc-paths.sh: test_expect_success fetch '
       	git init to-fetch &&
       	(
     @@ t/t5580-unc-paths.sh: test_expect_success fetch '
       
      
       ## t/t5581-http-curl-verbose.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='test GIT_CURL_VERBOSE'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5581-http-curl-verbose.sh: test_expect_success 'setup repository' '
       	git add file &&
       	git commit -m one &&
     @@ t/t5581-http-curl-verbose.sh: test_expect_success 'setup repository' '
       test_expect_success 'failure in git-upload-pack is shown' '
      
       ## t/t5582-fetch-negative-refspec.sh ##
     +@@ t/t5582-fetch-negative-refspec.sh: test_description='"git fetch" with negative refspecs.
     + 
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5582-fetch-negative-refspec.sh: test_expect_success "clone and setup child repos" '
       		git switch -c alternate &&
       		echo >file updated again by one &&
     @@ t/t5582-fetch-negative-refspec.sh: test_expect_success "fetch with negative patt
       		cut -f -1 .git/FETCH_HEAD >actual &&
       		test_cmp expect actual
       	)
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TEST_NUMBER" in
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
     --[0-4]*|5[0-4]*|55[0-3]*)
     -+[0-4]*|5[0-5]*)
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
 16:  dda6ce098c ! 17:  b2fda75261 t5[6-9]*: adjust the references to the default branch name "main"
     @@ Commit message
          Signed-off-by: Johannes Schindelin <[email protected]>
      
       ## t/t5601-clone.sh ##
     +@@
     + 
     + test_description=clone
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5601-clone.sh: test_expect_success 'clone respects global branch.autosetuprebase' '
       		rm -fr dst &&
       		git clone src dst &&
     @@ t/t5601-clone.sh: test_expect_success 'clone from a repository with two identica
       	test "z$( cd target-11 && git symbolic-ref HEAD )" = zrefs/heads/another
      
       ## t/t5604-clone-reference.sh ##
     +@@
     + #
     + 
     + test_description='test clone --reference'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5604-clone-reference.sh: test_expect_success 'existence of info/alternates' '
       '
       
     @@ t/t5604-clone-reference.sh: test_expect_success 'fetch with incomplete alternate
       '
      
       ## t/t5605-clone-local.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='test local clone'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5605-clone-local.sh: test_expect_success 'preparing origin repository' '
       	test "$(cd a.git && git config --bool core.bare)" = true &&
       	test "$(cd x && git config --bool core.bare)" = true &&
     @@ t/t5605-clone-local.sh: test_expect_success 'clone empty repository' '
       
      
       ## t/t5606-clone-options.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='basic clone options'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5606-clone-options.sh: test_expect_success 'setup' '
       test_expect_success 'clone -o' '
       
     @@ t/t5606-clone-options.sh: test_expect_success 'prefers config "clone.defaultRemo
       
      
       ## t/t5607-clone-bundle.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='some bundle related tests'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5607-clone-bundle.sh: test_expect_success 'setup' '
       '
       
     @@ t/t5608-clone-2gb.sh: test_expect_success 'setup' '
       	 echo "data 5" &&
      
       ## t/t5609-clone-branch.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='clone --branch option'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5609-clone-branch.sh: test_expect_success 'setup' '
       	 echo one >file && git add file && git commit -m one &&
       	 git checkout -b two &&
     @@ t/t5609-clone-branch.sh: test_expect_success 'clone -b sets up tracking' '
       	)
      
       ## t/t5610-clone-detached.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='test cloning a repository with detached HEAD'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5610-clone-detached.sh: test_expect_success 'setup' '
       '
       
     @@ t/t5610-clone-detached.sh: test_expect_success 'cloned HEAD is detached' '
       	git clone "file://$PWD" detached-orphan
      
       ## t/t5611-clone-config.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='tests for git clone -c key=value'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5611-clone-config.sh: test_expect_success 'clone -c config is available during clone' '
       
       test_expect_success 'clone -c remote.origin.fetch=<refspec> works' '
     @@ t/t5611-clone-config.sh: test_expect_success 'clone -c remote.<remote>.fetch=<re
       '
      
       ## t/t5612-clone-refspec.sh ##
     -@@ t/t5612-clone-refspec.sh: test_description='test refspec written by clone-command'
     +@@
     + #!/bin/sh
     + 
     + test_description='test refspec written by clone-command'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
       . ./test-lib.sh
       
       test_expect_success 'setup' '
     @@ t/t5614-clone-submodules-shallow.sh: test_description='Test shallow cloning of r
       	mkdir sub &&
      
       ## t/t5616-partial-clone.sh ##
     +@@
     + 
     + test_description='git partial clone'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5616-partial-clone.sh: test_expect_success 'verify that .promisor file contains refs fetched' '
       	test_line_count = 1 promisorlist &&
       	git -C srv.bare rev-parse --verify HEAD >headhash &&
     @@ t/t5616-partial-clone.sh: test_expect_success 'fetch lazy-fetches only to resolv
       	grep "fetch< version 2" trace &&
      
       ## t/t5617-clone-submodules-remote.sh ##
     -@@ t/t5617-clone-submodules-remote.sh: test_description='Test cloning repos with submodules using remote-tracking branc
     +@@
     + 
     + test_description='Test cloning repos with submodules using remote-tracking branches'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
     +@@ t/t5617-clone-submodules-remote.sh: export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
       pwd=$(pwd)
       
       test_expect_success 'setup' '
     @@ t/t5617-clone-submodules-remote.sh: test_expect_success 'clone with --single-bra
       '
      
       ## t/t5700-protocol-v1.sh ##
     +@@ t/t5700-protocol-v1.sh: TEST_NO_CREATE_REPO=1
     + GIT_TEST_PROTOCOL_VERSION=0
     + export GIT_TEST_PROTOCOL_VERSION
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5700-protocol-v1.sh: test_expect_success 'fetch with git:// using protocol v1' '
       	GIT_TRACE_PACKET=1 git -C daemon_child -c protocol.version=1 \
       		fetch 2>log &&
     @@ t/t5700-protocol-v1.sh: test_expect_success 'push with http:// using protocol v1
       
      
       ## t/t5701-git-serve.sh ##
     +@@
     + 
     + test_description='test protocol v2 server commands'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5701-git-serve.sh: test_expect_success 'wrong object-format' '
       #
       test_expect_success 'setup some refs and tags' '
     @@ t/t5701-git-serve.sh: test_expect_success 'symrefs parameter' '
       
      
       ## t/t5702-protocol-v2.sh ##
     +@@ t/t5702-protocol-v2.sh: test_description='test git wire-protocol version 2'
     + 
     + TEST_NO_CREATE_REPO=1
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5702-protocol-v2.sh: test_expect_success 'ref advertisement is filtered with ls-remote using protocol
       	test_when_finished "rm -f log" &&
       
     @@ t/t5702-protocol-v2.sh: test_expect_success 'push with http:// and a config of v
       
      
       ## t/t5703-upload-pack-ref-in-want.sh ##
     +@@
     + 
     + test_description='upload-pack ref-in-want'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5703-upload-pack-ref-in-want.sh: write_command () {
       
       # c(o/foo) d(o/bar)
     @@ t/t5703-upload-pack-ref-in-want.sh: test_expect_success 'server is initially beh
       
      
       ## t/t5801-remote-helpers.sh ##
     +@@
     + 
     + test_description='Test remote-helper import and export commands'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t5801-remote-helpers.sh: test_expect_success 'fetch multiple branches' '
       	(cd local &&
       	 git fetch
     @@ t/t5801-remote-helpers.sh: test_expect_success 'fetch HEAD' '
       	echo more >>file &&
       	git commit -a -m more
       	) &&
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TEST_NUMBER" in
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
     --[0-4]*|5[0-5]*)
     -+[0-5]*)
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
 17:  27d7994933 ! 18:  dfbc93923b t6[0-3]*: adjust the references to the default branch name "main"
     @@ Commit message
          Signed-off-by: Johannes Schindelin <[email protected]>
      
       ## t/t6000-rev-list-misc.sh ##
     +@@
     + 
     + test_description='miscellaneous rev-list tests'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6000-rev-list-misc.sh: test_expect_success 'propagate uninteresting flag down correctly' '
       '
       
     @@ t/t6000-rev-list-misc.sh: test_expect_success 'propagate uninteresting flag down
       	< that
      
       ## t/t6001-rev-list-graft.sh ##
     +@@
     + 
     + test_description='Revision traversal vs grafts and path limiter'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6001-rev-list-graft.sh: test_expect_success setup '
       	git commit -a -m "Third in one history." &&
       	A2=$(git rev-parse --verify HEAD) &&
     @@ t/t6004-rev-list-path-optim.sh: test_description='git rev-list trivial path opti
         /                        /
        o---------o----o----o----o side
        a0        c0   c1   a1   c2
     +@@ t/t6004-rev-list-path-optim.sh: test_description='git rev-list trivial path optimization test
     + 
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6004-rev-list-path-optim.sh: test_expect_success 'further setup' '
       	git add c &&
       	test_tick &&
     @@ t/t6004-rev-list-path-optim.sh: test_expect_success 'path optimization 2' '
       '
      
       ## t/t6006-rev-list-format.sh ##
     +@@
     + 
     + test_description='git rev-list --pretty=format test'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6006-rev-list-format.sh: test_expect_success 'setup' '
       test_format () {
       	cat >expect.$1
     @@ t/t6006-rev-list-format.sh: test_expect_success '"%h %gD: %gs" is same as git-re
       
      
       ## t/t6007-rev-list-cherry-pick-file.sh ##
     +@@
     + 
     + test_description='test git rev-list --cherry-pick -- file'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6007-rev-list-cherry-pick-file.sh: test_expect_success setup '
       	test_tick &&
       	git commit -m "E" &&
     @@ t/t6007-rev-list-cherry-pick-file.sh: test_expect_success '--cherry-pick with in
       cat >expect <<EOF
      
       ## t/t6008-rev-list-submodule.sh ##
     +@@
     + 
     + test_description='git rev-list involving submodules that this repo has'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6008-rev-list-submodule.sh: test_expect_success 'setup' '
       '
       
     @@ t/t6008-rev-list-submodule.sh: test_expect_success 'setup' '
       test_done
      
       ## t/t6009-rev-list-parent.sh ##
     +@@
     + 
     + test_description='ancestor culling and limiting by parent number'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6009-rev-list-parent.sh: test_expect_success 'setup roots, merges and octopuses' '
       	test_commit seven &&
       	git checkout -b yetanotherbranch four &&
     @@ t/t6009-rev-list-parent.sh: test_expect_success 'dodecapus' '
       	git tag dodecapus &&
      
       ## t/t6012-rev-list-simplify.sh ##
     +@@
     + 
     + test_description='merge simplification'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6012-rev-list-simplify.sh: test_expect_success setup '
       	git add side &&
       	test_tick && git commit -m "Side root" &&
     @@ t/t6012-rev-list-simplify.sh: test_expect_success setup '
       
      
       ## t/t6013-rev-list-reverse-parents.sh ##
     +@@
     + 
     + test_description='--reverse combines with --parents'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6013-rev-list-reverse-parents.sh: test_expect_success 'set up --reverse example' '
       	commit two &&
       	git checkout -b side HEAD^ &&
     @@ t/t6013-rev-list-reverse-parents.sh: test_expect_success 'set up --reverse examp
       
      
       ## t/t6016-rev-list-graph-simplify-history.sh ##
     +@@
     + 
     + test_description='--graph and simplified history'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6016-rev-list-graph-simplify-history.sh: test_expect_success 'set up rev-list --graph test' '
       	test_commit A1 foo.txt &&
       	test_commit A2 bar.txt &&
     @@ t/t6016-rev-list-graph-simplify-history.sh: test_expect_success 'set up rev-list
       	git checkout -b B A1 &&
      
       ## t/t6017-rev-list-stdin.sh ##
     +@@
     + 
     + test_description='log family learns --stdin'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6017-rev-list-stdin.sh: test_expect_success setup '
       		done &&
       		for i in $them
     @@ t/t6017-rev-list-stdin.sh: test_expect_success 'not only --stdin' '
       '
      
       ## t/t6018-rev-list-glob.sh ##
     +@@
     + 
     + test_description='rev-list/rev-parse --glob'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6018-rev-list-glob.sh: compare () {
       
       test_expect_success 'setup' '
     @@ t/t6018-rev-list-glob.sh: test_expect_success 'shortlog accepts --glob/--tags/--
       
      
       ## t/t6019-rev-list-ancestry-path.sh ##
     +@@ t/t6019-rev-list-ancestry-path.sh: test_description='--ancestry-path'
     + #  --ancestry-path G..M -- G.t == L
     + #  --ancestry-path --simplify-merges G^..M -- G.t == G L
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6019-rev-list-ancestry-path.sh: test_expect_success 'setup criss-cross' '
       	(cd criss-cross &&
       	 git init &&
     @@ t/t6019-rev-list-ancestry-path.sh: test_expect_success 'setup criss-cross' '
       # no commits in bc descend from cb
      
       ## t/t6030-bisect-porcelain.sh ##
     +@@ t/t6030-bisect-porcelain.sh: test_description='Tests git bisect functionality'
     + 
     + exec </dev/null
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6030-bisect-porcelain.sh: test_expect_success 'bisect start without -- takes unknown arg as pathspec' '
       	grep bar ".git/BISECT_NAMES"
       '
     @@ t/t6030-bisect-porcelain.sh: test_expect_success 'bisect: --no-checkout - target
       		git rev-list --objects BISECT_HEAD --not \$GOOD >tmp.\$\$ &&
      
       ## t/t6040-tracking-info.sh ##
     +@@
     + 
     + test_description='remote tracking stats'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6040-tracking-info.sh: test_expect_success setup '
       		git branch -d brokenbase &&
       		git checkout -b b6 origin
     @@ t/t6040-tracking-info.sh: test_expect_success '--set-upstream-to @{-1}' '
       '
      
       ## t/t6050-replace.sh ##
     +@@
     + #
     + test_description='Tests replace refs functionality'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6050-replace.sh: test_expect_success 'tag replaced commit' '
       '
       
     @@ t/t6050-replace.sh: test_expect_success GPG 'set up a merge commit with a merget
       	git cat-file commit $HASH10 | grep "^mergetag object"
      
       ## t/t6101-rev-parse-parents.sh ##
     +@@
     + 
     + test_description='Test git rev-parse with different parent options'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6101-rev-parse-parents.sh: test_expect_success 'setup' '
       	test_commit second &&
       	git checkout --orphan tmp &&
     @@ t/t6101-rev-parse-parents.sh: test_expect_success 'setup' '
       
      
       ## t/t6110-rev-list-sparse.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='operations that cull histories in unusual ways'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6110-rev-list-sparse.sh: test_expect_success setup '
       	git checkout -b side HEAD^ &&
       	test_commit D &&
     @@ t/t6110-rev-list-sparse.sh: test_expect_success setup '
       test_expect_success 'rev-list --first-parent --boundary' '
      
       ## t/t6111-rev-list-treesame.sh ##
     +@@
     + 
     + test_description='TREESAME and limiting'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6111-rev-list-treesame.sh: test_expect_success setup '
       	git checkout other-branch &&
       	test_commit "Added other" other "Hello" C &&
     @@ t/t6111-rev-list-treesame.sh: test_expect_success setup '
       
      
       ## t/t6112-rev-list-filters-objects.sh ##
     +@@
     + 
     + test_description='git rev-list using object filtering'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6112-rev-list-filters-objects.sh: test_expect_success 'verify sparse:oid=oid-ish omits top-level files' '
       	sort >expected &&
       
     @@ t/t6112-rev-list-filters-objects.sh: test_expect_success 'combine:... with more
       
      
       ## t/t6120-describe.sh ##
     +@@ t/t6120-describe.sh: test_description='test describe'
     + #
     + # First parent of a merge commit is on the same line, second parent below.
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6120-describe.sh: check_describe c-* --tags HEAD^^2
       check_describe B --tags HEAD^^2^
       check_describe e --tags HEAD^^^
     @@ t/t6120-describe.sh: test_expect_success 'describe commits with disjoint bases 2
       	)
      
       ## t/t6200-fmt-merge-msg.sh ##
     +@@
     + 
     + test_description='fmt-merge-msg test'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6200-fmt-merge-msg.sh: test_expect_success GPG 'set up a signed tag' '
       test_expect_success 'message for merging local branch' '
       	echo "Merge branch ${apos}left${apos}" >expected &&
     @@ t/t6200-fmt-merge-msg.sh: test_expect_success 'merge-msg with "merging" an annot
       test_done
      
       ## t/t6302-for-each-ref-filter.sh ##
     +@@
     + 
     + test_description='test for-each-refs usage of ref-filter APIs'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6302-for-each-ref-filter.sh: test_expect_success 'setup some history and refs' '
       	git tag $sign -m "A signed tag" signed-tag &&
       	git tag $sign -m "Signed doubly" doubly-signed-tag signed-tag &&
     @@ t/t6302-for-each-ref-filter.sh: test_expect_success '--merged is compatible with
       	git for-each-ref --format="%(refname:short): %(if)%(worktreepath)%(then)%(worktreepath)%(else)not checked out%(end)" refs/heads/ >actual &&
       	rm -r worktree_dir &&
       	git worktree prune &&
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TRASH_DIRECTORY" in
     - esac
     - 
     - case "$TEST_NUMBER" in
     --3404|4013|5310|5526)
     -+3404|4013|5310|5526|6300)
     - 	# Avoid conflicts with patch series that are cooking at the same time
     - 	# as the patch series changing the default of `init.defaultBranch`.
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
     --[0-5]*)
     -+[0-5]*|6[0-3]*)
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
 18:  04878e2268 = 19:  0a4bc77dac t64*: preemptively adjust alignment to prepare for `master` -> `main`
 19:  f0fa12b577 ! 20:  3dbc83c6a1 t6[4-9]*: adjust the references to the default branch name "main"
     @@ Commit message
          Signed-off-by: Johannes Schindelin <[email protected]>
      
       ## t/t6400-merge-df.sh ##
     +@@
     + #
     + 
     + test_description='Test merge with directory/file conflicts'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6400-merge-df.sh: test_expect_success 'prepare repository' '
       '
       
     @@ t/t6400-merge-df.sh: test_expect_success 'F/D conflict' '
       test_expect_success 'setup modify/delete + directory/file conflict' '
      
       ## t/t6402-merge-rename.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='Merge-recursive merging renames'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6402-merge-rename.sh: test_expect_success 'setup' '
       	git branch change &&
       	git branch change+rename &&
     @@ t/t6402-merge-rename.sh: test_expect_success 'setup spurious "refusing to lose u
       '
      
       ## t/t6404-recursive-merge.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='Test merge without common ancestors'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6404-recursive-merge.sh: test_expect_success 'setup tests' '
       	git add a1 &&
       	GIT_AUTHOR_DATE="2006-12-12 23:00:00" git commit -m 1 a1 &&
     @@ t/t6404-recursive-merge.sh: test_expect_success 'setup tests' '
       
      
       ## t/t6405-merge-symlinks.sh ##
     +@@ t/t6405-merge-symlinks.sh: test_description='merging symlinks on filesystem w/o symlink support.
     + This tests that git merge-recursive writes merge results as plain files
     + if core.symlinks is false.'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6405-merge-symlinks.sh: test_expect_success 'setup' '
       	git branch b-file &&
       	l=$(printf file | git hash-object -t blob -w --stdin) &&
     @@ t/t6405-merge-symlinks.sh: test_expect_success 'setup' '
       
      
       ## t/t6406-merge-attr.sh ##
     +@@
     + 
     + test_description='per path merge controlled by merge attribute'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6406-merge-attr.sh: test_expect_success setup '
       	git branch side &&
       	for f in text binary union
     @@ t/t6406-merge-attr.sh: test_expect_success 'custom merge does not lock index' '
       test_done
      
       ## t/t6407-merge-binary.sh ##
     +@@
     + 
     + test_description='ask merge-recursive to merge binary files'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6407-merge-binary.sh: test_expect_success setup '
       	git ls-files -s a >E0 &&
       	git ls-files -s m | sed -e "s/ 0	/ 3	/" >E3 &&
     @@ t/t6407-merge-binary.sh: test_expect_success recursive '
       		false
      
       ## t/t6409-merge-subtree.sh ##
     +@@
     + 
     + test_description='subtree merge strategy'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6409-merge-subtree.sh: test_expect_success setup '
       	echo >>hello world &&
       	git add hello &&
     @@ t/t6409-merge-subtree.sh: test_expect_success 'merge update' '
       	git ls-files -s >actual &&
      
       ## t/t6411-merge-filemode.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='merge: handle file mode'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6411-merge-filemode.sh: test_expect_success 'set up mode change in one branch' '
       	: >file1 &&
       	git add file1 &&
     @@ t/t6411-merge-filemode.sh: do_both_modes resolve
       '
      
       ## t/t6412-merge-large-rename.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='merging with large rename matrix'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6412-merge-large-rename.sh: test_rename() {
       	test_expect_success "rename ($1, $2)" '
       	n='$1' &&
     @@ t/t6412-merge-large-rename.sh: test_rename() {
       }
      
       ## t/t6413-merge-crlf.sh ##
     +@@ t/t6413-merge-crlf.sh: test_description='merge conflict in crlf repo
     + 
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6413-merge-crlf.sh: test_expect_success setup '
       	echo line from b | append_cr >file &&
       	git commit -m "add line from b" file &&
     @@ t/t6413-merge-crlf.sh: test_expect_success setup '
       test_expect_success 'Check "ours" is CRLF' '
      
       ## t/t6414-merge-rename-nocruft.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='Merge-recursive merging renames'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6414-merge-rename-nocruft.sh: test_expect_success 'setup' '
       	git update-index A &&
       	git commit -m "blue modify A" &&
     @@ t/t6414-merge-rename-nocruft.sh: test_expect_success 'setup' '
       # This test broke in 65ac6e9c3f47807cb603af07a6a9e1a43bc119ae
      
       ## t/t6415-merge-dir-to-symlink.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='merging when a directory was replaced with a symlink'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6415-merge-dir-to-symlink.sh: test_expect_success 'create a commit where dir a/b changed to symlink' '
       
       test_expect_success 'checkout does not clobber untracked symlink' '
     @@ t/t6415-merge-dir-to-symlink.sh: test_expect_success 'do not lose modifications
       test_expect_success 'setup a merge where dir a/b-2 changed to symlink' '
      
       ## t/t6416-recursive-corner-cases.sh ##
     +@@
     + 
     + test_description='recursive merge corner cases involving criss-cross merges'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6416-recursive-corner-cases.sh: test_expect_success 'git detects conflict merging criss-cross+modify/delete' '
       		test_line_count = 2 out &&
       
     @@ t/t6416-recursive-corner-cases.sh: test_expect_success 'check virtual merge base
       			base        \
      
       ## t/t6417-merge-ours-theirs.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='Merge-recursive ours and theirs variants'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6417-merge-ours-theirs.sh: test_expect_success setup '
       	sed -e "s/9/nueve/" >file <elif &&
       	git commit -a -m theirs &&
     @@ t/t6418-merge-text-auto.sh
       *+ [side^] Initial
       '
       
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6418-merge-text-auto.sh: test_expect_success setup '
       	git commit -m "add line from b" &&
       	git tag b &&
     @@ t/t6418-merge-text-auto.sh: test_expect_success 'Test delete/normalize conflict'
       	test_path_is_missing file
      
       ## t/t6419-merge-ignorecase.sh ##
     +@@
     + 
     + test_description='git-merge with case-changing rename on case-insensitive file system'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6419-merge-ignorecase.sh: test_expect_success 'merge with case-changing rename' '
       	>foo &&
       	git add foo &&
     @@ t/t6419-merge-ignorecase.sh: test_expect_success 'merge with case-changing renam
       
      
       ## t/t6422-merge-rename-corner-cases.sh ##
     +@@
     + test_description="recursive merge corner cases w/ renames but not criss-crosses"
     + # t6036 has corner cases that involve both criss-cross merges and renames
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6422-merge-rename-corner-cases.sh: test_conflicts_with_adds_and_renames() {
       	# Setup:
       	#          L
     @@ t/t6422-merge-rename-corner-cases.sh: test_expect_success 'check nested conflict
       		test_must_fail git merge-file    \
      
       ## t/t6425-merge-rename-delete.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='Merge-recursive rename/delete conflict message'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6425-merge-rename-delete.sh: test_expect_success 'rename/delete' '
       	git mv A B &&
       	git commit -m "rename" &&
     @@ t/t6425-merge-rename-delete.sh: test_expect_success 'rename/delete' '
       
      
       ## t/t6427-diff3-conflict-markers.sh ##
     +@@
     + 
     + test_description='recursive merge diff3 style conflict markers'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6427-diff3-conflict-markers.sh: test_expect_success 'check no merge base' '
       # Setup:
       #          L1
     @@ t/t6427-diff3-conflict-markers.sh: test_expect_success 'rebase --apply describes
       '
      
       ## t/t6430-merge-recursive.sh ##
     +@@
     + 
     + test_description='merge-recursive backend test'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6430-merge-recursive.sh: test_expect_success 'setup 1' '
       	git add a d/e &&
       
     @@ t/t6432-merge-recursive-space-options.sh
       *+ [remote^] Initial revision
       *   ok 1: setup
       '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6432-merge-recursive-space-options.sh: test_expect_success 'setup' '
       	mv text.txt+ text.txt &&
       	git commit -a -m "Remove cruft" &&
     @@ t/t6432-merge-recursive-space-options.sh: test_expect_success 'setup' '
       			s/Quite correct\(.*\)/It is too correct\1Q/
      
       ## t/t6433-merge-toplevel.sh ##
     -@@ t/t6433-merge-toplevel.sh: test_description='"git merge" top-level frontend'
     +@@
     + 
     + test_description='"git merge" top-level frontend'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
       . ./test-lib.sh
       
       t3033_reset () {
     @@ t/t6434-merge-recursive-rename-options.sh: test_description='merge-recursive ren
       D	0-old
       D	1-old
       D	2-old
     +@@ t/t6434-merge-recursive-rename-options.sh: they are rounded down (see, e.g., Documentation/diff-generate-patch.txt, which
     + mentions this in a different context).
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6434-merge-recursive-rename-options.sh: test_expect_success 'setup repo' '
       	get_expected_stages 2 &&
       	get_expected_stages 3 &&
     @@ t/t6434-merge-recursive-rename-options.sh: test_expect_success 'setup repo' '
       test_expect_success 'setup thresholds' '
      
       ## t/t6436-merge-overwrite.sh ##
     +@@ t/t6436-merge-overwrite.sh: test_description='git-merge
     + 
     + Do not overwrite changes.'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6436-merge-overwrite.sh: test_expect_success 'set up unborn branch and content' '
       '
       
     @@ t/t6436-merge-overwrite.sh: test_expect_success 'set up unborn branch and conten
       	grep foo expect &&
      
       ## t/t6437-submodule-merge.sh ##
     +@@
     + 
     + test_description='merging with submodules'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6437-submodule-merge.sh: test_expect_success setup '
       	test_tick &&
       	git commit -m root &&
     @@ t/t6437-submodule-merge.sh: test_expect_success 'setup for recursive merge with
       	 git commit -m c &&
      
       ## t/t6439-merge-co-error-msgs.sh ##
     +@@
     + 
     + test_description='unpack-trees error messages'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6439-merge-co-error-msgs.sh: test_expect_success 'setup' '
       	git add two three four five &&
       	git commit -m Second &&
     @@ t/t6439-merge-co-error-msgs.sh: test_expect_success 'not_uptodate_dir porcelain
       	test_must_fail git checkout branch 2>out &&
      
       ## t/t6501-freshen-objects.sh ##
     +@@
     + #      to refer to an existing tree).
     + 
     + test_description='check pruning of dependent objects'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t6501-freshen-objects.sh: for repack in '' true; do
       		git checkout -b experiment &&
       		commit abandon &&
     @@ t/t6501-freshen-objects.sh: for repack in '' true; do
       		git branch -D experiment
       	'
       
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TEST_NUMBER" in
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
     --[0-5]*|6[0-3]*)
     -+[0-6]*)
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
 20:  f9c30dc516 ! 21:  2315a253f6 t7[0-4]*: adjust the references to the default branch name "main"
     @@ Commit message
          Signed-off-by: Johannes Schindelin <[email protected]>
      
       ## t/t7003-filter-branch.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='git filter-branch'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7003-filter-branch.sh: test_expect_success 'setup' '
       	mkdir dir &&
       	test_commit dir/D &&
     @@ t/t7003-filter-branch.sh: test_expect_success 'automatic remapping to ancestor w
       
      
       ## t/t7004-tag.sh ##
     +@@ t/t7004-tag.sh: test_description='git tag
     + 
     + Tests for operations with tags.'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7004-tag.sh: test_expect_success 'checking that branch head with --no-contains lists all but
       "
       
     @@ t/t7004-tag.sh: test_expect_success ULIMIT_STACK_SIZE '--contains and --no-conta
       	test_must_be_empty actual &&
      
       ## t/t7030-verify-tag.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='signed tag tests'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7030-verify-tag.sh: test_expect_success GPG 'create signed tags' '
       	echo 3 >elif && git add elif &&
       	test_tick && git commit -m "third on side" &&
     @@ t/t7030-verify-tag.sh: test_expect_success GPG 'create signed tags' '
       
      
       ## t/t7060-wtstatus.sh ##
     +@@
     + 
     + test_description='basic work tree status reporting'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7060-wtstatus.sh: EOF
       		git checkout -b side HEAD^ &&
       		git rm foo &&
     @@ t/t7060-wtstatus.sh: test_expect_success 'status --branch with detached HEAD' '
       	## HEAD (no branch)
      
       ## t/t7063-status-untracked-cache.sh ##
     +@@
     + 
     + test_description='test untracked cache'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7063-status-untracked-cache.sh: EOF
       test_expect_success 'set up sparse checkout' '
       	echo "done/[a-z]*" >.git/info/sparse-checkout &&
     @@ t/t7063-status-untracked-cache.sh: test_expect_success '"status" after file repl
       	status_is_clean
      
       ## t/t7102-reset.sh ##
     +@@ t/t7102-reset.sh: test_description='git reset
     + 
     + Documented tests for git reset'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7102-reset.sh: test_expect_success 'trying to do reset --soft with pending merge should fail' '
       	printf "1st line 2nd file\n2nd line 2nd file\n3rd line" >secondfile &&
       	git commit -a -m "the change in branch2" &&
     @@ t/t7102-reset.sh: test_expect_success '--hard reset to ORIG_HEAD should clear a
       '
      
       ## t/t7113-post-index-change-hook.sh ##
     +@@
     + 
     + test_description='post index change hook'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7113-post-index-change-hook.sh: test_expect_success 'test checkout and reset trigger the hook' '
       	EOF
       	: force index to be dirty &&
     @@ t/t7201-co.sh: Test switching across them.
       
       '
       
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7201-co.sh: test_expect_success setup '
       	fill a b c d e f >two &&
       	git commit -a -m "Renamer R one->uno, M two" &&
     @@ t/t7201-co.sh: test_expect_success 'checkout --conflict=diff3' '
       	! grep "^Previous HEAD" error.log
      
       ## t/t7400-submodule-basic.sh ##
     +@@ t/t7400-submodule-basic.sh: This test tries to verify basic sanity of the init, update and status
     + subcommands of git submodule.
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7400-submodule-basic.sh: inspect() {
       }
       
     @@ t/t7400-submodule-basic.sh: test_expect_success 'apply submodule diff' '
       
      
       ## t/t7403-submodule-sync.sh ##
     +@@ t/t7403-submodule-sync.sh: test_description='git submodule sync
     + These tests exercise the "git submodule sync" subcommand.
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7403-submodule-sync.sh: test_expect_success 'change submodule url' '
       	(
       		cd super &&
     @@ t/t7403-submodule-sync.sh: test_expect_success '"git submodule sync --recursive"
       '
      
       ## t/t7406-submodule-update.sh ##
     -@@ t/t7406-submodule-update.sh: submodule and "git submodule update --rebase/--merge" does not detach the HEAD.
     +@@ t/t7406-submodule-update.sh: This test verifies that "git submodule update" detaches the HEAD of the
     + submodule and "git submodule update --rebase/--merge" does not detach the HEAD.
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
     +@@ t/t7406-submodule-update.sh: export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
       
       compare_head()
       {
     @@ t/t7406-submodule-update.sh: test_expect_success 'submodule update places git-di
       	)
      
       ## t/t7407-submodule-foreach.sh ##
     +@@ t/t7407-submodule-foreach.sh: This test verifies that "git submodule foreach" correctly visits all submodules
     + that are currently checked out.
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7407-submodule-foreach.sh: sub1sha1_short=$(cd clone3/sub1 && git rev-parse --short HEAD)
       sub2sha1_short=$(cd clone3/sub2 && git rev-parse --short HEAD)
       
     @@ t/t7407-submodule-foreach.sh: test_expect_success 'ensure "status --cached --rec
       test_expect_success 'test "status --recursive" from sub directory' '
      
       ## t/t7409-submodule-detached-work-tree.sh ##
     +@@ t/t7409-submodule-detached-work-tree.sh: on detached working trees
     + '
     + 
     + TEST_NO_CREATE_REPO=1
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7409-submodule-detached-work-tree.sh: test_expect_success 'submodule on detached working tree' '
       			git rev-parse --verify HEAD >actual &&
       			test_cmp ../../../../expect actual
     @@ t/t7409-submodule-detached-work-tree.sh: test_expect_success 'submodule on detac
       		cd home &&
      
       ## t/t7417-submodule-path-url.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='check handling of .gitmodule path with dash'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7417-submodule-path-url.sh: test_expect_success MINGW 'submodule paths disallows trailing spaces' '
       	sed "s/sub/sub /" <tree >tree.new &&
       	tree=$(git -C super mktree <tree.new) &&
     @@ t/t7417-submodule-path-url.sh: test_expect_success MINGW 'submodule paths disall
       
       	test_must_fail git clone --recurse-submodules super dst 2>err &&
       	test_i18ngrep "sub " err
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TRASH_DIRECTORY" in
     - esac
     - 
     - case "$TEST_NUMBER" in
     --3404|4013|5310|5526|6300)
     -+3404|4013|5310|5526|6300|7064)
     - 	# Avoid conflicts with patch series that are cooking at the same time
     - 	# as the patch series changing the default of `init.defaultBranch`.
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
     --[0-6]*)
     -+[0-6]*|7[0-4]*)
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
 21:  2b269ca983 ! 22:  20eef6cc97 t7[5-9]*: adjust the references to the default branch name "main"
     @@ Commit message
          Signed-off-by: Johannes Schindelin <[email protected]>
      
       ## t/t7501-commit-basic-functionality.sh ##
     +@@
     + # signoff
     + 
     + test_description='git commit'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7501-commit-basic-functionality.sh: test_expect_success 'same tree (merge and amend merge)' '
       	echo zero >zero &&
       	git add zero &&
     @@ t/t7501-commit-basic-functionality.sh: test_expect_success 'same tree (merge and
       	git diff HEAD^ HEAD >actual &&
      
       ## t/t7502-commit-porcelain.sh ##
     +@@
     + 
     + test_description='git commit porcelain-ish'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7502-commit-porcelain.sh: test_expect_success 'output summary format for merges' '
       
       output_tests_cleanup() {
     @@ t/t7502-commit-porcelain.sh: git reset -q --hard
       	sed -n -e "s/^parent //p" -e "/^$/q" raw >actual &&
      
       ## t/t7503-pre-commit-and-pre-merge-commit-hooks.sh ##
     +@@
     + 
     + test_description='pre-commit and pre-merge-commit hooks'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7503-pre-commit-and-pre-merge-commit-hooks.sh: test_expect_success 'root commit' '
       	git add foo &&
       	git commit -m "make it non-ff" &&
     @@ t/t7503-pre-commit-and-pre-merge-commit-hooks.sh: test_expect_success POSIXPERM
       
      
       ## t/t7504-commit-msg-hook.sh ##
     +@@
     + 
     + test_description='commit-msg hook'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7504-commit-msg-hook.sh: test_expect_success '--no-verify with failing hook (editor)' '
       test_expect_success 'merge fails with failing hook' '
       
     @@ t/t7504-commit-msg-hook.sh: test_expect_success "hook doesn't edit commit messag
       	git add file2 &&
      
       ## t/t7505-prepare-commit-msg-hook.sh ##
     +@@
     + 
     + test_description='prepare-commit-msg hook'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7505-prepare-commit-msg-hook.sh: test_expect_success 'set up commits for rebasing' '
       	do
       		test_commit rebase-$i c $i
     @@ t/t7508-status.sh: test_expect_success 'git commit --dry-run will show a staged
         (use "git pull" to merge the remote branch into yours)
      
       ## t/t7510-signed-commit.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='signed commit tests'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7510-signed-commit.sh: test_expect_success GPG 'create signed commits' '
       	echo 3 >elif && git add elif &&
       	test_tick && git commit -m "third on side" &&
     @@ t/t7510-signed-commit.sh: test_expect_success GPG 'create signed commits' '
       
      
       ## t/t7512-status-help.sh ##
     +@@
     + 
     + test_description='git status advice'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7512-status-help.sh: test_expect_success 'prepare for conflicts' '
       	git config --global advice.statusuoption false &&
       	test_commit init main.txt init &&
     @@ t/t7512-status-help.sh: EOF
       	test_commit two_commit main.txt two &&
      
       ## t/t7517-per-repo-email.sh ##
     +@@
     + 
     + test_description='per-repo forced setting of email address'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7517-per-repo-email.sh: test_expect_success 'set up rebase scenarios' '
       
       test_expect_success 'fast-forward rebase does not care about ident' '
     @@ t/t7600-merge.sh: Testing basic merge operations/option parsing.
        +     * [c1] commit 1
             +  [c6] c6
            +   [c5] c5
     +@@ t/t7600-merge.sh: Testing basic merge operations/option parsing.
     + +++++++* [c0] commit 0
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7600-merge.sh: test_expect_success 'merge c0 with c1 with --ff-only' '
       test_debug 'git log --graph --decorate --oneline --all'
       
     @@ t/t7606-merge-custom.sh: test_description="git merge
       * | (tag: c1) c1
      
       ## t/t7608-merge-messages.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='test auto-generated merge messages'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7608-merge-messages.sh: check_oneline() {
       }
       
     @@ t/t7608-merge-messages.sh: check_oneline() {
       test_done
      
       ## t/t7610-mergetool.sh ##
     -@@ t/t7610-mergetool.sh: Testing basic merge tool invocation'
     +@@ t/t7610-mergetool.sh: test_description='git mergetool
     + 
     + Testing basic merge tool invocation'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
       . ./test-lib.sh
       
       # All the mergetool test work by checking out a temporary branch based
     @@ t/t7611-merge-abort.sh: Set up repo with conflicting and non-conflicting branche
       #             \
       #              --- foo/barf/bazf   <-- conflict_branch
       #               \
     +@@ t/t7611-merge-abort.sh: Next, test git merge --abort with the following variables:
     + - changed/unchanged worktree after merge
     + - changed/unchanged index after merge
     + '
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7611-merge-abort.sh: test_expect_success 'setup' '
       	git checkout -b clean_branch HEAD^ &&
       	echo bart > bar &&
     @@ t/t7611-merge-abort.sh: test_expect_success 'setup' '
       pre_merge_head="$(git rev-parse HEAD)"
      
       ## t/t7612-merge-verify-signatures.sh ##
     +@@
     + #!/bin/sh
     + 
     + test_description='merge signature verification tests'
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7612-merge-verify-signatures.sh: test_expect_success GPG 'create signed commits' '
       	echo 3 >baz && git add baz &&
       	test_tick && git commit -SB7227189 -m "untrusted on side" &&
     @@ t/t7612-merge-verify-signatures.sh: test_expect_success GPG 'create signed commi
       test_expect_success GPG 'merge unsigned commit with verification' '
      
       ## t/t7614-merge-signoff.sh ##
     -@@ t/t7614-merge-signoff.sh: This test runs git merge --signoff and makes sure that it works.
     +@@ t/t7614-merge-signoff.sh: test_description='git merge --signoff
     + This test runs git merge --signoff and makes sure that it works.
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
     +@@ t/t7614-merge-signoff.sh: export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
       test_setup() {
       	# Expected commit message after merge --signoff
       	cat >expected-signed <<EOF &&
     @@ t/t7614-merge-signoff.sh: test_expect_success 'setup' '
       '
      
       ## t/t7701-repack-unpack-unreachable.sh ##
     +@@
     + 
     + test_description='git repack works correctly'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7701-repack-unpack-unreachable.sh: test_expect_success '-A with -d option leaves unreachable objects unpacked' '
       	git commit -a -m more_content &&
       	csha1=$(git rev-parse HEAD^{commit}) &&
     @@ t/t7701-repack-unpack-unreachable.sh: test_expect_success '-A with -d option lea
       	git commit -a -m even_more_content &&
      
       ## t/t7800-difftool.sh ##
     +@@ t/t7800-difftool.sh: test_description='git-difftool
     + Testing basic diff tool invocation
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7800-difftool.sh: test_expect_success 'basic usage requires no repo' '
       	test_i18ngrep ^usage: output
       '
     @@ t/t7800-difftool.sh: run_dir_diff_test 'difftool --dir-diff with unmerged files'
       	cat >expect <<-EOF &&
      
       ## t/t7810-grep.sh ##
     +@@
     + test_description='git grep various.
     + '
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./test-lib.sh
      @@ t/t7810-grep.sh: test_expect_success 'grep -e -- -- path' '
       '
       
     @@ t/t7810-grep.sh: test_expect_success 'grep --no-index pattern -- path' '
       	test_cmp expect actual
       '
       
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TRASH_DIRECTORY" in
     - esac
     - 
     - case "$TEST_NUMBER" in
     --3404|4013|5310|5526|6300|7064)
     -+3404|4013|5310|5526|6300|7064|7817)
     - 	# Avoid conflicts with patch series that are cooking at the same time
     - 	# as the patch series changing the default of `init.defaultBranch`.
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
     --[0-6]*|7[0-4]*)
     -+[0-7]*)
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;

22: 5cac0065c8 ! 23: e37bc3c792 t8*: adjust the references to the default branch name "main"
@@ t/annotate-tests.sh: test_expect_success 'blame --first-parent blames merge for
test_expect_success 'setup evil merge' '

## t/t8001-annotate.sh ##
+@@
+ #!/bin/sh
+
+ test_description='git annotate' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME +
+ . ./test-lib.sh
@@ t/t8001-annotate.sh: PROG='git annotate'
. "$TEST_DIRECTORY"/annotate-tests.sh

@@ t/t8001-annotate.sh: PROG='git annotate'
test 2 = $(grep A <authors | wc -l) &&
test 2 = $(grep B <authors | wc -l)

+ ## t/t8002-blame.sh ##
+@@
+ #!/bin/sh
+
+ test_description='git blame'
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
+
## t/t8003-blame-corner-cases.sh ##
+@@
+ #!/bin/sh
+
+ test_description='git blame corner cases' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t8003-blame-corner-cases.sh: test_expect_success 'blame wholesale copy and more in the index' '

test_expect_success 'blame during cherry-pick with file rename conflict' '
@@ t/t8003-blame-corner-cases.sh: test_expect_success 'blame wholesale copy and mor
git add rodent &&

## t/t8004-blame-with-conflicts.sh ##
+@@
+ # Based on a test case submitted by Björn Steinbrink.
+
+ test_description='git blame on conflicted files' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t8004-blame-with-conflicts.sh: test_expect_success 'setup first case' '
git add file2 &&
git commit --author "U Gly <ug@localhost>" -m ugly &&
@@ t/t8004-blame-with-conflicts.sh: Even more" > file2 &&
exit 1
else

- ## t/test-lib.sh ##
-@@ t/test-lib.sh: case "$TEST_NUMBER" in
- GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
- export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
- ;;
--[0-7]*)
-+[0-8]*)
- GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
- export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
- ;;
+ ## t/t8012-blame-colors.sh ##
+@@
+ #!/bin/sh
+
+ test_description='colored git blame' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
23: 57e90d459a ! 24: 3e81bc89a2 t9[0-4]*: adjust the references to the default branch name "main"
@@ Commit message

## t/t9001-send-email.sh ##
+@@
+ #!/bin/sh
+
+ test_description='git send-email'
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t9001-send-email.sh: test_expect_success $PREREQ '--compose-encoding adds correct MIME for subject' '
'

@@ t/t9001-send-email.sh: test_expect_success $PREREQ 'test that send-email works o
test_expect_success $PREREQ 'test that sendmail config is rejected' '

## t/t9100-git-svn-basic.sh ##
+@@
+ test_description='git svn basic tests'
+ GIT_SVN_LC_ALL=${LC_ALL:-$LANG}
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./lib-git-svn.sh
@@ t/t9100-git-svn-basic.sh: test_expect_success 'dcommit $rev does not clobber current branch' '
test refs/heads/my-bar = $(git symbolic-ref HEAD) &&
git log refs/remotes/bar | grep "change 1" &&
@@ t/t9145-git-svn-master-branch.sh
# Copyright (c) 2009 Eric Wong
#
-test_description='git svn initial master branch is "trunk" if possible'
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+test_description='git svn initial main branch is "trunk" if possible'
- . ./lib-git-svn.sh
++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME

- test_expect_success 'setup test repository' '
+ . ./lib-git-svn.sh
@@ t/t9145-git-svn-master-branch.sh: test_expect_success 'setup test repository' '
svn_cmd import -m b/b i "$svnrepo/branches/b"
'
@@ t/t9145-git-svn-master-branch.sh: test_expect_success 'setup test repository' '

## t/t9151-svn-mergeinfo.sh ##
+@@
+
+ test_description='git-svn svn mergeinfo properties'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./lib-git-svn.sh
@@ t/t9151-svn-mergeinfo.sh: test_expect_success 'merging two branches in one commit is detected correctly' '
'

@@ t/t9151-svn-mergeinfo.sh: test_expect_success 'merging two branches in one commi

## t/t9155-git-svn-fetch-deleted-tag.sh ##
+@@
+
+ test_description='git svn fetch deleted tag'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./lib-git-svn.sh
@@ t/t9155-git-svn-fetch-deleted-tag.sh: test_expect_success 'fetch deleted tags from same revision with checksum error'
git svn fetch &&

@@ t/t9155-git-svn-fetch-deleted-tag.sh: test_expect_success 'fetch deleted tags fr
test_done

## t/t9156-git-svn-fetch-deleted-tag-2.sh ##
+@@
+
+ test_description='git svn fetch deleted tag 2'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./lib-git-svn.sh
@@ t/t9156-git-svn-fetch-deleted-tag-2.sh: test_expect_success 'fetch deleted tags from same revision with no checksum erro
cd git_project &&
git svn fetch &&
@@ t/t9156-git-svn-fetch-deleted-tag-2.sh: test_expect_success 'fetch deleted tags
test_done

## t/t9163-git-svn-reset-clears-caches.sh ##
+@@
+ #
+
+ test_description='git svn reset clears memoized caches' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./lib-git-svn.sh
@@ t/t9163-git-svn-reset-clears-caches.sh: test_expect_success 'fetch to merge-base (a)' '
test_expect_success 'rebase looses SVN merge (m)' '
git svn rebase &&
@@ t/t9163-git-svn-reset-clears-caches.sh: test_expect_success 'fetch to merge-base
# git svn fetch creates correct history with merge commit

## t/t9169-git-svn-dcommit-crlf.sh ##
+@@
+ #!/bin/sh
+
+ test_description='git svn dcommit CRLF' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./lib-git-svn.sh
@@ t/t9169-git-svn-dcommit-crlf.sh: test_expect_success 'setup commit repository' '
p=$(git rev-parse HEAD) &&
t=$(git write-tree) &&
@@ t/t9169-git-svn-dcommit-crlf.sh: test_expect_success 'setup commit repository' '
git svn dcommit &&

## t/t9300-fast-import.sh ##
+@@
+ #
+
+ test_description='test git fast-import utility' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t9300-fast-import.sh: test_expect_success 'A: create pack from stdin' '
mark :4
data $file4_len
@@ t/t9300-fast-import.sh: test_expect_success 'Y: rewrite submodules' '

## t/t9301-fast-import-notes.sh ##
-@@ t/t9301-fast-import-notes.sh: test_description='test git fast-import of notes objects' +@@
+ #
+
+ test_description='test git fast-import of notes objects' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
+@@ t/t9301-fast-import-notes.sh: export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME

test_tick
cat >input <<INPUT_END
@@ t/t9302-fast-import-unpack-limit.sh: test_expect_success 'lookups after checkpoi
make sure from "unpacked sha1 reference" works, too

## t/t9350-fast-export.sh ##
+@@
+ #
+
+ test_description='git fast-export' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t9350-fast-export.sh: test_expect_success 'setup' '
git commit -m sitzt file2 &&
test_tick &&
@@ t/t9350-fast-export.sh: test_expect_success 'merge commit gets exported with --i
'

## t/t9351-fast-export-anonymize.sh ##
+@@
+ #!/bin/sh
+
+ test_description='basic tests for fast-export --anonymize' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t9351-fast-export-anonymize.sh: test_expect_success 'stream retains other as refname' '
'

@@ t/t9351-fast-export-anonymize.sh: test_expect_success 'repo has original shape a
'

## t/t9400-git-cvsserver-server.sh ##
+@@ t/t9400-git-cvsserver-server.sh: test_description='git-cvsserver access
+ tests read access to a git repository with the
+ cvs CLI client via git-cvsserver server'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t9400-git-cvsserver-server.sh: test_expect_success 'setup' '
touch secondrootfile &&
git add secondrootfile &&
@@ t/t9400-git-cvsserver-server.sh: test_expect_success 'cvs co -c (shows module da
xbranch:

## t/t9401-git-cvsserver-crlf.sh ##
+@@ t/t9401-git-cvsserver-crlf.sh: test_description='git-cvsserver -kb modes
+ tests -kb mode for binary files when accessing a git
+ repository using cvs CLI client via git-cvsserver server'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t9401-git-cvsserver-crlf.sh: test_expect_success 'setup' '
'

@@ t/t9401-git-cvsserver-crlf.sh: test_expect_success 'update subdir of other copy
git add multilineTxt.c &&

## t/t9402-git-cvsserver-refs.sh ##
+@@ t/t9402-git-cvsserver-refs.sh: test_description='git-cvsserver and git refspecs
+ tests ability for git-cvsserver to switch between and compare
+ tags, branches and other git refspecs'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./test-lib.sh
@@ t/t9402-git-cvsserver-refs.sh: test_expect_success 'setup v1, b1' '

rm -rf cvswork
@@ t/t9402-git-cvsserver-refs.sh: test_expect_success 'setup simple b2' '
check_start_tree cvswork &&
check_file cvswork textfile.c v1 &&
check_file cvswork t2 v1 &&
-
- ## t/test-lib.sh ##
-@@ t/test-lib.sh: case "$TEST_NUMBER" in
- GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
- export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
- ;;
--[0-8]*)
-+[0-8]*|9[0-4]*)
- GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
- export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
- ;;
24: f9e01de17f ! 25: cda06e253d t9[5-7]*: adjust the references to the default branch name "main"
@@ t/lib-cvs.sh: setup_cvs_test_repository () {
else

## t/t9500-gitweb-standalone-no-errors.sh ##
+@@ t/t9500-gitweb-standalone-no-errors.sh: commandline, and checks that it would not write any errors
+ or warnings to log.'
+
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./gitweb-lib.sh
@@ t/t9500-gitweb-standalone-no-errors.sh: test_expect_success \
echo "Branch" >>b &&
git add b &&
@@ t/t9500-gitweb-standalone-no-errors.sh: test_expect_success \
test_done

## t/t9501-gitweb-standalone-http-status.sh ##
+@@ t/t9501-gitweb-standalone-http-status.sh: commandline, and checks that it returns the expected HTTP status
+ code and message.'
+
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./gitweb-lib.sh
@@ t/t9501-gitweb-standalone-http-status.sh: test_debug 'cat gitweb.headers'
# snapshot hash ids

@@ t/t9501-gitweb-standalone-http-status.sh: test_expect_success DATE_PARSER 'modif
test_debug 'cat gitweb.headers'

## t/t9502-gitweb-standalone-parse-output.sh ##
+@@ t/t9502-gitweb-standalone-parse-output.sh: commandline, and checks that it produces the correct output, either
+ in the HTTP header or the actual script output.'
+
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./gitweb-lib.sh
@@ t/t9502-gitweb-standalone-parse-output.sh: test_expect_success 'snapshot: HEAD' '
'
test_debug 'cat gitweb.headers && cat file_list'
@@ t/t9502-gitweb-standalone-parse-output.sh: test_expect_success 'snapshot: short

## t/t9600-cvsimport.sh ##
+@@
+ #!/bin/sh
+
+ test_description='git cvsimport basic tests' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./lib-cvs.sh
@@ t/t9600-cvsimport.sh: test_expect_success PERL 'no .git/cvs-revisions created by default' '

'
@@ t/t9600-cvsimport.sh: test_expect_success PERL 'no .git/cvs-revisions created by
test_done

## t/t9601-cvsimport-vendor-branch.sh ##
+@@
+ # tag has been removed.
+
+ test_description='git cvsimport handling of vendor branches' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./lib-cvs.sh
@@ t/t9601-cvsimport-vendor-branch.sh: test_expect_success PERL 'import a module with a vendor branch' '

'
@@ t/t9601-cvsimport-vendor-branch.sh: test_expect_success PERL 'import a module wi

## t/t9602-cvsimport-branches-tags.sh ##
+@@
+ # t9602/README.
+
+ test_description='git cvsimport handling of branches and tags' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./lib-cvs.sh
@@ t/t9602-cvsimport-branches-tags.sh: test_expect_success PERL 'import module' '

'
@@ t/t9602-cvsimport-branches-tags.sh: test_expect_success PERL 'import module' '

## t/t9603-cvsimport-patchsets.sh ##
+@@
+ # bug.
+
+ test_description='git cvsimport testing for correct patchset estimation' +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./lib-cvs.sh
@@ t/t9603-cvsimport-patchsets.sh: test_expect_failure PERL 'import with criss cross times on revisions' '
git cvsimport -p"-x" -C module-git module &&
(
@@ t/t9603-cvsimport-patchsets.sh: test_expect_failure PERL 'import with criss cros

echo "Rev 5 Branch A Wed Mar 11 19:09:10 2009 +0000
Rev 4 Branch A Wed Mar 11 19:03:52 2009 +0000" > expect-A &&
-
- ## t/test-lib.sh ##
-@@ t/test-lib.sh: case "$TEST_NUMBER" in
- GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
- export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
- ;;
--[0-8]*|9[0-4]*)
-+[0-8]*|9[0-7]*)
- GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
- export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
- ;;
25: 4da4b69114 ! 26: fb8584d993 tests(git-p4): transition to the default branch name main

     @@ Commit message
          Signed-off-by: Johannes Schindelin <[email protected]>
      
       ## t/t9800-git-p4-basic.sh ##
     +@@
     + 
     + test_description='git p4 tests'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./lib-git-p4.sh
      @@ t/t9800-git-p4-basic.sh: test_expect_success 'clone --bare should make a bare repository' '
       		git config --get --bool core.bare true &&
       		git rev-parse --verify refs/remotes/p4/master &&
     @@ t/t9800-git-p4-basic.sh: test_expect_success 'clone --bare should make a bare re
       '
      
       ## t/t9801-git-p4-branch.sh ##
     +@@
     + 
     + test_description='git p4 tests for p4 branches'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./lib-git-p4.sh
      @@ t/t9801-git-p4-branch.sh: test_expect_success 'import main, no branch detection' '
       	(
       		cd "$git" &&
     @@ t/t9801-git-p4-branch.sh: test_expect_success 'use-client-spec detect-branches s
       		test_path_is_missing b3-file3_1
      
       ## t/t9806-git-p4-options.sh ##
     +@@
     + 
     + test_description='git p4 options'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./lib-git-p4.sh
      @@ t/t9806-git-p4-options.sh: test_expect_success 'clone no --git-dir' '
       	test_must_fail git p4 clone --git-dir=xx //depot
       '
     @@ t/t9806-git-p4-options.sh: test_expect_success 'clone --use-client-spec' '
       		)
      
       ## t/t9807-git-p4-submit.sh ##
     +@@
     + 
     + test_description='git p4 submit'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./lib-git-p4.sh
      @@ t/t9807-git-p4-submit.sh: test_expect_success 'submit with allowSubmit' '
       		git config git-p4.skipSubmitEdit true &&
       		git config git-p4.allowSubmit "nobranch" &&
     @@ t/t9807-git-p4-submit.sh: test_expect_success 'submit with allowSubmit' '
       '
      
       ## t/t9811-git-p4-label-import.sh ##
     +@@
     + 
     + test_description='git p4 label tests'
     + 
     +-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     + 
     + . ./lib-git-p4.sh
      @@ t/t9811-git-p4-label-import.sh: test_expect_success 'tag that cannot be exported' '
       		git add main/f12 &&
       		git commit -m "adding f12" &&
     @@ t/t9811-git-p4-label-import.sh: test_expect_success 'tag that cannot be exported
       		git p4 submit --export-labels
       	) &&
       	(
     -
     - ## t/test-lib.sh ##
     -@@ t/test-lib.sh: case "$TEST_NUMBER" in
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;
     --[0-8]*|9[0-7]*)
     -+[0-8]*|9[0-8]*)
     - 	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
     - 	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
     - 	;;

26: cfa29c7f71 ! 27: bbc17c8ee5 t99*: adjust the references to the default branch name "main"
@@ Commit message

## t/t9903-bash-prompt.sh ##
+@@
+
+ test_description='test git-specific bash prompt functions'
+
+-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master ++GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
+ . ./lib-bash.sh
@@ t/t9903-bash-prompt.sh: test_expect_success 'setup for prompt tests' '
echo 3 >file &&
git commit -m "third b1" file &&
@@ t/t9903-bash-prompt.sh: test_expect_success 'prompt - hide if pwd ignored - env
test_config bash.hideIfPwdIgnored false &&
(
cd ignored_dir &&
-
- ## t/test-lib.sh ##
-@@ t/test-lib.sh: case "$TRASH_DIRECTORY" in
- esac
-
- case "$TEST_NUMBER" in
--3404|4013|5310|5526|6300|7064|7817)
-+3404|4013|5310|5526|6300|7064|7817|9902)
- # Avoid conflicts with patch series that are cooking at the same time
- # as the patch series changing the default of init.defaultBranch.
- GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
- export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
- ;;
--[0-8]*|9[0-8]*)
-+*)
- GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
- export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
- ;;
27: fc0c1f6463 = 28: ec9b9cab88 tests: drop prereq PREPARE_FOR_MAIN_BRANCH where no longer needed

Signature · 1 line
gitgitgadget
#94 lore raw

PATCH v3 1/28 tests: mark tests relying on the current default for `init.defaultBranch`

From: Johannes Schindelin <[email protected]>

In addition to the manual adjustment to let the linux-gcc CI job run the test suite with master and then with main, this patch makes sure that GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME is set in all test scripts that currently rely on the initial branch name being `master by default.

To determine which test scripts to mark up, the first step was to force-set the default branch name to master in

- all test scripts that contain the keyword master,

- t4211, which expects t/t4211/history.export with a hard-coded ref to initialize the default branch,

- t5560 because it sources t/t556x_common which uses master,

- t8002 and t8012 because both source t/annotate-tests.sh which also uses master)

This trick was performed by this command:

	$ sed -i '/^ *\. \.\/\(test-lib\|lib-\(bash\|cvs\|git-svn\)\|gitweb-lib\)\.sh$/i\
	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master\
	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME\
	' $(git grep -l master t/t[0-9]*.sh) \
	t/t4211*.sh t/t5560*.sh t/t8002*.sh t/t8012*.sh

After that, careful, manual inspection revealed that some of the test scripts containing the needle master do not actually rely on a specific default branch name: either they mention master only in a comment, or they initialize that branch specificially, or they do not actually refer to the current default branch. Therefore, the aforementioned modification was undone in those test scripts thusly:

	$ git checkout HEAD -- \
		t/t0027-auto-crlf.sh t/t0060-path-utils.sh \
		t/t1011-read-tree-sparse-checkout.sh \
		t/t1305-config-include.sh t/t1309-early-config.sh \
		t/t1402-check-ref-format.sh t/t1450-fsck.sh \
		t/t2024-checkout-dwim.sh \
		t/t2106-update-index-assume-unchanged.sh \
		t/t3040-subprojects-basic.sh t/t3301-notes.sh \
		t/t3308-notes-merge.sh t/t3423-rebase-reword.sh \
		t/t3436-rebase-more-options.sh \
		t/t4015-diff-whitespace.sh t/t4257-am-interactive.sh \
		t/t5323-pack-redundant.sh t/t5401-update-hooks.sh \
		t/t5511-refspec.sh t/t5526-fetch-submodules.sh \
		t/t5529-push-errors.sh t/t5530-upload-pack-error.sh \
		t/t5548-push-porcelain.sh \
		t/t5552-skipping-fetch-negotiator.sh \
		t/t5572-pull-submodule.sh t/t5608-clone-2gb.sh \
		t/t5614-clone-submodules-shallow.sh \
		t/t7508-status.sh t/t7606-merge-custom.sh \
		t/t9302-fast-import-unpack-limit.sh

We excluded one set of test scripts in these commands, though: the range of git p4 tests. The reason? git p4 stores the (foreign) remote branch in the branch called p4/master, which is obviously not the default branch. Manual analysis revealed that only five of these tests actually require a specific default branch name to pass; They were modified thusly:

	$ sed -i '/^ *\. \.\/lib-git-p4\.sh$/i\
	GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master\
	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME\
	' t/t980[0167]*.sh t/t9811*.sh
---
 ci/run-build-and-tests.sh                        | 2 ++
 t/t0002-gitfile.sh                               | 3 +++
 t/t0020-crlf.sh                                  | 3 +++
 t/t0021-conversion.sh                            | 3 +++
 t/t0028-working-tree-encoding.sh                 | 3 +++
 t/t0041-usage.sh                                 | 3 +++
 t/t0050-filesystem.sh                            | 3 +++
 t/t0100-previous.sh                              | 3 +++
 t/t1004-read-tree-m-u-wf.sh                      | 3 +++
 t/t1008-read-tree-overlay.sh                     | 3 +++
 t/t1009-read-tree-new-index.sh                   | 3 +++
 t/t1021-rerere-in-workdir.sh                     | 3 +++
 t/t1090-sparse-checkout-scope.sh                 | 3 +++
 t/t1091-sparse-checkout-builtin.sh               | 3 +++
 t/t1300-config.sh                                | 3 +++
 t/t1301-shared-repo.sh                           | 3 +++
 t/t1400-update-ref.sh                            | 3 +++
 t/t1403-show-ref.sh                              | 3 +++
 t/t1405-main-ref-store.sh                        | 3 +++
 t/t1406-submodule-ref-store.sh                   | 3 +++
 t/t1407-worktree-ref-store.sh                    | 3 +++
 t/t1408-packed-refs.sh                           | 3 +++
 t/t1410-reflog.sh                                | 3 +++
 t/t1411-reflog-show.sh                           | 3 +++
 t/t1413-reflog-detach.sh                         | 3 +++
 t/t1414-reflog-walk.sh                           | 3 +++
 t/t1416-ref-transaction-hooks.sh                 | 3 +++
 t/t1430-bad-ref-name.sh                          | 3 +++
 t/t1500-rev-parse.sh                             | 3 +++
 t/t1503-rev-parse-verify.sh                      | 3 +++
 t/t1505-rev-parse-last.sh                        | 3 +++
 t/t1506-rev-parse-diagnosis.sh                   | 3 +++
 t/t1507-rev-parse-upstream.sh                    | 3 +++
 t/t1508-at-combinations.sh                       | 3 +++
 t/t1511-rev-parse-caret.sh                       | 3 +++
 t/t1512-rev-parse-disambiguation.sh              | 3 +++
 t/t1513-rev-parse-prefix.sh                      | 3 +++
 t/t1514-rev-parse-push.sh                        | 3 +++
 t/t1700-split-index.sh                           | 3 +++
 t/t2007-checkout-symlink.sh                      | 3 +++
 t/t2009-checkout-statinfo.sh                     | 3 +++
 t/t2010-checkout-ambiguous.sh                    | 3 +++
 t/t2011-checkout-invalid-head.sh                 | 3 +++
 t/t2012-checkout-last.sh                         | 3 +++
 t/t2015-checkout-unborn.sh                       | 3 +++
 t/t2017-checkout-orphan.sh                       | 3 +++
 t/t2020-checkout-detach.sh                       | 3 +++
 t/t2022-checkout-paths.sh                        | 3 +++
 t/t2023-checkout-m.sh                            | 3 +++
 t/t2027-checkout-track.sh                        | 3 +++
 t/t2030-unresolve-info.sh                        | 3 +++
 t/t2060-switch.sh                                | 3 +++
 t/t2070-restore.sh                               | 3 +++
 t/t2400-worktree-add.sh                          | 3 +++
 t/t2401-worktree-prune.sh                        | 3 +++
 t/t2402-worktree-list.sh                         | 3 +++
 t/t2405-worktree-submodule.sh                    | 3 +++
 t/t3200-branch.sh                                | 3 +++
 t/t3201-branch-contains.sh                       | 3 +++
 t/t3202-show-branch-octopus.sh                   | 3 +++
 t/t3203-branch-output.sh                         | 3 +++
 t/t3204-branch-name-interpretation.sh            | 3 +++
 t/t3205-branch-color.sh                          | 3 +++
 t/t3206-range-diff.sh                            | 3 +++
 t/t3210-pack-refs.sh                             | 3 +++
 t/t3211-peel-ref.sh                              | 3 +++
 t/t3302-notes-index-expensive.sh                 | 3 +++
 t/t3303-notes-subtrees.sh                        | 3 +++
 t/t3304-notes-mixed.sh                           | 3 +++
 t/t3320-notes-merge-worktrees.sh                 | 3 +++
 t/t3400-rebase.sh                                | 3 +++
 t/t3402-rebase-merge.sh                          | 3 +++
 t/t3403-rebase-skip.sh                           | 3 +++
 t/t3404-rebase-interactive.sh                    | 3 +++
 t/t3405-rebase-malformed.sh                      | 3 +++
 t/t3406-rebase-message.sh                        | 3 +++
 t/t3407-rebase-abort.sh                          | 3 +++
 t/t3408-rebase-multi-line.sh                     | 3 +++
 t/t3409-rebase-preserve-merges.sh                | 3 +++
 t/t3412-rebase-root.sh                           | 3 +++
 t/t3413-rebase-hook.sh                           | 3 +++
 t/t3415-rebase-autosquash.sh                     | 3 +++
 t/t3416-rebase-onto-threedots.sh                 | 3 +++
 t/t3418-rebase-continue.sh                       | 3 +++
 t/t3419-rebase-patch-id.sh                       | 3 +++
 t/t3420-rebase-autostash.sh                      | 3 +++
 t/t3427-rebase-subtree.sh                        | 3 +++
 t/t3430-rebase-merges.sh                         | 3 +++
 t/t3431-rebase-fork-point.sh                     | 3 +++
 t/t3432-rebase-fast-forward.sh                   | 3 +++
 t/t3434-rebase-i18n.sh                           | 3 +++
 t/t3435-rebase-gpg-sign.sh                       | 3 +++
 t/t3500-cherry.sh                                | 3 +++
 t/t3501-revert-cherry-pick.sh                    | 3 +++
 t/t3502-cherry-pick-merge.sh                     | 3 +++
 t/t3503-cherry-pick-root.sh                      | 3 +++
 t/t3504-cherry-pick-rerere.sh                    | 3 +++
 t/t3505-cherry-pick-empty.sh                     | 3 +++
 t/t3506-cherry-pick-ff.sh                        | 3 +++
 t/t3507-cherry-pick-conflict.sh                  | 3 +++
 t/t3508-cherry-pick-many-commits.sh              | 3 +++
 t/t3509-cherry-pick-merge-df.sh                  | 3 +++
 t/t3512-cherry-pick-submodule.sh                 | 3 +++
 t/t3600-rm.sh                                    | 3 +++
 t/t3701-add-interactive.sh                       | 3 +++
 t/t3901-i18n-patch.sh                            | 3 +++
 t/t3903-stash.sh                                 | 3 +++
 t/t3910-mac-os-precompose.sh                     | 3 +++
 t/t4013-diff-various.sh                          | 3 +++
 t/t4014-format-patch.sh                          | 3 +++
 t/t4017-diff-retval.sh                           | 3 +++
 t/t4038-diff-combined.sh                         | 3 +++
 t/t4041-diff-submodule-option.sh                 | 3 +++
 t/t4048-diff-combined-binary.sh                  | 3 +++
 t/t4052-stat-output.sh                           | 3 +++
 t/t4056-diff-order.sh                            | 3 +++
 t/t4057-diff-combined-paths.sh                   | 3 +++
 t/t4061-diff-indent.sh                           | 3 +++
 t/t4066-diff-emit-delay.sh                       | 3 +++
 t/t4068-diff-symmetric-merge-base.sh             | 3 +++
 t/t4103-apply-binary.sh                          | 3 +++
 t/t4108-apply-threeway.sh                        | 3 +++
 t/t4121-apply-diffs.sh                           | 3 +++
 t/t4122-apply-symlink-inside.sh                  | 3 +++
 t/t4150-am.sh                                    | 3 +++
 t/t4200-rerere.sh                                | 3 +++
 t/t4201-shortlog.sh                              | 3 +++
 t/t4202-log.sh                                   | 3 +++
 t/t4203-mailmap.sh                               | 3 +++
 t/t4204-patch-id.sh                              | 3 +++
 t/t4207-log-decoration-colors.sh                 | 3 +++
 t/t4208-log-magic-pathspec.sh                    | 3 +++
 t/t4211-line-log.sh                              | 3 +++
 t/t4214-log-graph-octopus.sh                     | 3 +++
 t/t4216-log-bloom.sh                             | 3 +++
 t/t4253-am-keep-cr-dos.sh                        | 3 +++
 t/t5150-request-pull.sh                          | 3 +++
 t/t5304-prune.sh                                 | 3 +++
 t/t5305-include-tag.sh                           | 3 +++
 t/t5310-pack-bitmaps.sh                          | 3 +++
 t/t5312-prune-corruption.sh                      | 3 +++
 t/t5317-pack-objects-filter-objects.sh           | 3 +++
 t/t5322-pack-objects-sparse.sh                   | 3 +++
 t/t5400-send-pack.sh                             | 3 +++
 t/t5402-post-merge-hook.sh                       | 3 +++
 t/t5403-post-checkout-hook.sh                    | 3 +++
 t/t5404-tracking-branches.sh                     | 3 +++
 t/t5405-send-pack-rewind.sh                      | 3 +++
 t/t5407-post-rewrite-hook.sh                     | 3 +++
 t/t5410-receive-pack-alternates.sh               | 3 +++
 t/t5500-fetch-pack.sh                            | 3 +++
 t/t5501-fetch-push-alternates.sh                 | 3 +++
 t/t5502-quickfetch.sh                            | 3 +++
 t/t5503-tagfollow.sh                             | 3 +++
 t/t5504-fetch-receive-strict.sh                  | 3 +++
 t/t5505-remote.sh                                | 3 +++
 t/t5506-remote-groups.sh                         | 3 +++
 t/t5509-fetch-push-namespaces.sh                 | 3 +++
 t/t5510-fetch.sh                                 | 3 +++
 t/t5512-ls-remote.sh                             | 3 +++
 t/t5514-fetch-multiple.sh                        | 3 +++
 t/t5516-fetch-push.sh                            | 3 +++
 t/t5517-push-mirror.sh                           | 3 +++
 t/t5518-fetch-exit-status.sh                     | 3 +++
 t/t5519-push-alternates.sh                       | 3 +++
 t/t5520-pull.sh                                  | 3 +++
 t/t5521-pull-options.sh                          | 3 +++
 t/t5523-push-upstream.sh                         | 3 +++
 t/t5526-fetch-submodules.sh                      | 3 +++
 t/t5527-fetch-odd-refs.sh                        | 3 +++
 t/t5528-push-default.sh                          | 3 +++
 t/t5531-deep-submodule-push.sh                   | 3 +++
 t/t5533-push-cas.sh                              | 3 +++
 t/t5534-push-signed.sh                           | 3 +++
 t/t5537-fetch-shallow.sh                         | 3 +++
 t/t5538-push-shallow.sh                          | 3 +++
 t/t5539-fetch-http-shallow.sh                    | 3 +++
 t/t5540-http-push-webdav.sh                      | 3 +++
 t/t5541-http-push-smart.sh                       | 3 +++
 t/t5542-push-http-shallow.sh                     | 3 +++
 t/t5543-atomic-push.sh                           | 3 +++
 t/t5545-push-options.sh                          | 3 +++
 t/t5550-http-fetch-dumb.sh                       | 3 +++
 t/t5551-http-fetch-smart.sh                      | 3 +++
 t/t5553-set-upstream.sh                          | 3 +++
 t/t5560-http-backend-noserver.sh                 | 3 +++
 t/t5561-http-backend.sh                          | 3 +++
 t/t5570-git-daemon.sh                            | 3 +++
 t/t5571-pre-push-hook.sh                         | 3 +++
 t/t5580-unc-paths.sh                             | 3 +++
 t/t5581-http-curl-verbose.sh                     | 3 +++
 t/t5582-fetch-negative-refspec.sh                | 3 +++
 t/t5601-clone.sh                                 | 3 +++
 t/t5604-clone-reference.sh                       | 3 +++
 t/t5605-clone-local.sh                           | 3 +++
 t/t5606-clone-options.sh                         | 3 +++
 t/t5607-clone-bundle.sh                          | 3 +++
 t/t5609-clone-branch.sh                          | 3 +++
 t/t5610-clone-detached.sh                        | 3 +++
 t/t5611-clone-config.sh                          | 3 +++
 t/t5612-clone-refspec.sh                         | 3 +++
 t/t5616-partial-clone.sh                         | 3 +++
 t/t5617-clone-submodules-remote.sh               | 3 +++
 t/t5700-protocol-v1.sh                           | 3 +++
 t/t5701-git-serve.sh                             | 3 +++
 t/t5702-protocol-v2.sh                           | 3 +++
 t/t5703-upload-pack-ref-in-want.sh               | 3 +++
 t/t5801-remote-helpers.sh                        | 3 +++
 t/t6000-rev-list-misc.sh                         | 3 +++
 t/t6001-rev-list-graft.sh                        | 3 +++
 t/t6004-rev-list-path-optim.sh                   | 3 +++
 t/t6006-rev-list-format.sh                       | 3 +++
 t/t6007-rev-list-cherry-pick-file.sh             | 3 +++
 t/t6008-rev-list-submodule.sh                    | 3 +++
 t/t6009-rev-list-parent.sh                       | 3 +++
 t/t6012-rev-list-simplify.sh                     | 3 +++
 t/t6013-rev-list-reverse-parents.sh              | 3 +++
 t/t6016-rev-list-graph-simplify-history.sh       | 3 +++
 t/t6017-rev-list-stdin.sh                        | 3 +++
 t/t6018-rev-list-glob.sh                         | 3 +++
 t/t6019-rev-list-ancestry-path.sh                | 3 +++
 t/t6030-bisect-porcelain.sh                      | 3 +++
 t/t6040-tracking-info.sh                         | 3 +++
 t/t6050-replace.sh                               | 3 +++
 t/t6101-rev-parse-parents.sh                     | 3 +++
 t/t6110-rev-list-sparse.sh                       | 3 +++
 t/t6111-rev-list-treesame.sh                     | 3 +++
 t/t6112-rev-list-filters-objects.sh              | 3 +++
 t/t6120-describe.sh                              | 3 +++
 t/t6200-fmt-merge-msg.sh                         | 3 +++
 t/t6300-for-each-ref.sh                          | 3 +++
 t/t6302-for-each-ref-filter.sh                   | 3 +++
 t/t6400-merge-df.sh                              | 3 +++
 t/t6402-merge-rename.sh                          | 3 +++
 t/t6404-recursive-merge.sh                       | 3 +++
 t/t6405-merge-symlinks.sh                        | 3 +++
 t/t6406-merge-attr.sh                            | 3 +++
 t/t6407-merge-binary.sh                          | 3 +++
 t/t6409-merge-subtree.sh                         | 3 +++
 t/t6411-merge-filemode.sh                        | 3 +++
 t/t6412-merge-large-rename.sh                    | 3 +++
 t/t6413-merge-crlf.sh                            | 3 +++
 t/t6414-merge-rename-nocruft.sh                  | 3 +++
 t/t6415-merge-dir-to-symlink.sh                  | 3 +++
 t/t6416-recursive-corner-cases.sh                | 3 +++
 t/t6417-merge-ours-theirs.sh                     | 3 +++
 t/t6418-merge-text-auto.sh                       | 3 +++
 t/t6419-merge-ignorecase.sh                      | 3 +++
 t/t6422-merge-rename-corner-cases.sh             | 3 +++
 t/t6425-merge-rename-delete.sh                   | 3 +++
 t/t6427-diff3-conflict-markers.sh                | 3 +++
 t/t6430-merge-recursive.sh                       | 3 +++
 t/t6432-merge-recursive-space-options.sh         | 3 +++
 t/t6433-merge-toplevel.sh                        | 3 +++
 t/t6434-merge-recursive-rename-options.sh        | 3 +++
 t/t6436-merge-overwrite.sh                       | 3 +++
 t/t6437-submodule-merge.sh                       | 3 +++
 t/t6439-merge-co-error-msgs.sh                   | 3 +++
 t/t6501-freshen-objects.sh                       | 3 +++
 t/t7003-filter-branch.sh                         | 3 +++
 t/t7004-tag.sh                                   | 3 +++
 t/t7030-verify-tag.sh                            | 3 +++
 t/t7060-wtstatus.sh                              | 3 +++
 t/t7063-status-untracked-cache.sh                | 3 +++
 t/t7064-wtstatus-pv2.sh                          | 3 +++
 t/t7102-reset.sh                                 | 3 +++
 t/t7113-post-index-change-hook.sh                | 3 +++
 t/t7201-co.sh                                    | 3 +++
 t/t7400-submodule-basic.sh                       | 3 +++
 t/t7403-submodule-sync.sh                        | 3 +++
 t/t7406-submodule-update.sh                      | 3 +++
 t/t7407-submodule-foreach.sh                     | 3 +++
 t/t7409-submodule-detached-work-tree.sh          | 3 +++
 t/t7417-submodule-path-url.sh                    | 3 +++
 t/t7501-commit-basic-functionality.sh            | 3 +++
 t/t7502-commit-porcelain.sh                      | 3 +++
 t/t7503-pre-commit-and-pre-merge-commit-hooks.sh | 3 +++
 t/t7504-commit-msg-hook.sh                       | 3 +++
 t/t7505-prepare-commit-msg-hook.sh               | 3 +++
 t/t7510-signed-commit.sh                         | 3 +++
 t/t7512-status-help.sh                           | 3 +++
 t/t7517-per-repo-email.sh                        | 3 +++
 t/t7600-merge.sh                                 | 3 +++
 t/t7608-merge-messages.sh                        | 3 +++
 t/t7610-mergetool.sh                             | 3 +++
 t/t7611-merge-abort.sh                           | 3 +++
 t/t7612-merge-verify-signatures.sh               | 3 +++
 t/t7614-merge-signoff.sh                         | 3 +++
 t/t7701-repack-unpack-unreachable.sh             | 3 +++
 t/t7800-difftool.sh                              | 3 +++
 t/t7810-grep.sh                                  | 3 +++
 t/t8001-annotate.sh                              | 3 +++
 t/t8002-blame.sh                                 | 3 +++
 t/t8003-blame-corner-cases.sh                    | 3 +++
 t/t8004-blame-with-conflicts.sh                  | 3 +++
 t/t8012-blame-colors.sh                          | 3 +++
 t/t9001-send-email.sh                            | 3 +++
 t/t9100-git-svn-basic.sh                         | 3 +++
 t/t9145-git-svn-master-branch.sh                 | 3 +++
 t/t9151-svn-mergeinfo.sh                         | 3 +++
 t/t9155-git-svn-fetch-deleted-tag.sh             | 3 +++
 t/t9156-git-svn-fetch-deleted-tag-2.sh           | 3 +++
 t/t9163-git-svn-reset-clears-caches.sh           | 3 +++
 t/t9169-git-svn-dcommit-crlf.sh                  | 3 +++
 t/t9300-fast-import.sh                           | 3 +++
 t/t9301-fast-import-notes.sh                     | 3 +++
 t/t9350-fast-export.sh                           | 3 +++
 t/t9351-fast-export-anonymize.sh                 | 3 +++
 t/t9400-git-cvsserver-server.sh                  | 3 +++
 t/t9401-git-cvsserver-crlf.sh                    | 3 +++
 t/t9402-git-cvsserver-refs.sh                    | 3 +++
 t/t9500-gitweb-standalone-no-errors.sh           | 3 +++
 t/t9501-gitweb-standalone-http-status.sh         | 3 +++
 t/t9502-gitweb-standalone-parse-output.sh        | 3 +++
 t/t9600-cvsimport.sh                             | 3 +++
 t/t9601-cvsimport-vendor-branch.sh               | 3 +++
 t/t9602-cvsimport-branches-tags.sh               | 3 +++
 t/t9603-cvsimport-patchsets.sh                   | 3 +++
 t/t9800-git-p4-basic.sh                          | 3 +++
 t/t9801-git-p4-branch.sh                         | 3 +++
 t/t9806-git-p4-options.sh                        | 3 +++
 t/t9807-git-p4-submit.sh                         | 3 +++
 t/t9811-git-p4-label-import.sh                   | 3 +++
 t/t9902-completion.sh                            | 3 +++
 t/t9903-bash-prompt.sh                           | 3 +++
 325 files changed, 974 insertions(+)
ci/run-build-and-tests.sh +2 -0
index 6c27b886b8..50e0b90073 100755
@@ -13,6 +13,7 @@ esac
 make
 case "$jobname" in
 linux-gcc)
+	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 	make test
 	export GIT_TEST_SPLIT_INDEX=yes
 	export GIT_TEST_FULL_IN_PACK_ARRAY=true
@@ -22,6 +23,7 @@ linux-gcc)
 	export GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=1
 	export GIT_TEST_MULTI_PACK_INDEX=1
 	export GIT_TEST_ADD_I_USE_BUILTIN=1
+	export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
 	make test
 	;;
 linux-clang)
t/t0002-gitfile.sh +3 -0
index 960ed150cb..0a396c95e5 100755
@@ -4,6 +4,9 @@ test_description='.git file
 
 Verify that plumbing commands work when .git is a file
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 objpath() {
t/t0020-crlf.sh +3 -0
index b63ba62e5d..0d43189048 100755
@@ -2,6 +2,9 @@
 
 test_description='CRLF conversion'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 has_cr() {
t/t0021-conversion.sh +3 -0
index f6deaf498b..adf862aef1 100755
@@ -2,6 +2,9 @@
 
 test_description='blob conversion via gitattributes'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 TEST_ROOT="$PWD"
t/t0028-working-tree-encoding.sh +3 -0
index bfc4fb9af5..ccdc91c41c 100755
@@ -2,6 +2,9 @@
 
 test_description='working-tree-encoding conversion via gitattributes'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 GIT_TRACE_WORKING_TREE_ENCODING=1 && export GIT_TRACE_WORKING_TREE_ENCODING
t/t0041-usage.sh +3 -0
index 5b927b76fe..068b784e72 100755
@@ -2,6 +2,9 @@
 
 test_description='Test commands behavior when given invalid argument value'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup ' '
t/t0050-filesystem.sh +3 -0
index 608673fb77..368f7d515b 100755
@@ -2,6 +2,9 @@
 
 test_description='Various filesystem issues'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 auml=$(printf '\303\244')
t/t0100-previous.sh +3 -0
index 58c0b7e9b6..c3c2770ab3 100755
@@ -2,6 +2,9 @@
 
 test_description='previous branch syntax @{-n}'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'branch -d @{-1}' '
t/t1004-read-tree-m-u-wf.sh +3 -0
index 181956b241..57caa3a73f 100755
@@ -2,6 +2,9 @@
 
 test_description='read-tree -m -u checks working tree files'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-read-tree.sh
 
t/t1008-read-tree-overlay.sh +3 -0
index cf96016844..edb89447c7 100755
@@ -2,6 +2,9 @@
 
 test_description='test multi-tree read-tree without merging'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-read-tree.sh
 
t/t1009-read-tree-new-index.sh +3 -0
index 59b3aa4bc4..b9bab37ac0 100755
@@ -2,6 +2,9 @@
 
 test_description='test read-tree into a fresh index file'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t1021-rerere-in-workdir.sh +3 -0
index 301e071ff7..9177871c99 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='rerere run in a workdir'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success SYMLINKS setup '
t/t1090-sparse-checkout-scope.sh +3 -0
index f35a73dd20..d731322633 100755
@@ -2,6 +2,9 @@
 
 test_description='sparse checkout scope tests'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t1091-sparse-checkout-builtin.sh +3 -0
index 84acfc48b6..25e68ca036 100755
@@ -2,6 +2,9 @@
 
 test_description='sparse checkout builtin tests'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 list_files() {
t/t1300-config.sh +3 -0
index 825d9a184f..67e201b5c1 100755
@@ -5,6 +5,9 @@
 
 test_description='Test git config in different settings'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'clear default config' '
t/t1301-shared-repo.sh +3 -0
index 2dc853d1be..c573438f98 100755
@@ -5,6 +5,9 @@
 
 test_description='Test shared repository initialization'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # Remove a default ACL from the test dir if possible.
t/t1400-update-ref.sh +3 -0
index 4c01e08551..4ae6f50c02 100755
@@ -4,6 +4,9 @@
 #
 
 test_description='Test git update-ref and basic ref logging'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 Z=$ZERO_OID
t/t1403-show-ref.sh +3 -0
index 5d955c3bff..aaf32f3b07 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='show-ref'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t1405-main-ref-store.sh +3 -0
index 74af927fba..531059b871 100755
@@ -2,6 +2,9 @@
 
 test_description='test main ref store api'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 RUN="test-tool ref-store main"
t/t1406-submodule-ref-store.sh +3 -0
index 36b7ef5046..126518c155 100755
@@ -2,6 +2,9 @@
 
 test_description='test submodule ref store api'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 RUN="test-tool ref-store submodule:sub"
t/t1407-worktree-ref-store.sh +3 -0
index 9a84858118..aede1c20d7 100755
@@ -2,6 +2,9 @@
 
 test_description='test worktree ref store api'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 RWT="test-tool ref-store worktree:wt"
t/t1408-packed-refs.sh +3 -0
index 1e44a17eea..fd58388232 100755
@@ -2,6 +2,9 @@
 
 test_description='packed-refs entries are covered by loose refs'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t1410-reflog.sh +3 -0
index 730a43d9dd..aa02ca488d 100755
@@ -4,6 +4,9 @@
 #
 
 test_description='Test prune and reflog expiration'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 check_have () {
t/t1411-reflog-show.sh +3 -0
index 985daf1def..f6fecff671 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='Test reflog display routines'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t1413-reflog-detach.sh +3 -0
index c730600d8a..140914aa29 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='Test reflog interaction with detached HEAD'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 reset_state () {
t/t1414-reflog-walk.sh +3 -0
index 1181a9fb28..c463b5fc29 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='various tests of reflog walk (log -g) behavior'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'set up some reflog entries' '
t/t1416-ref-transaction-hooks.sh +3 -0
index f6e741c6c0..a26a6b782d 100755
@@ -2,6 +2,9 @@
 
 test_description='reference transaction hooks'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t1430-bad-ref-name.sh +3 -0
index c7878a60ed..8c4353746b 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='Test handling of ref names that check-ref-format rejects'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t1500-rev-parse.sh +3 -0
index 408b97d5af..d23da4e8de 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test git rev-parse'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # usage: [options] label is-bare is-inside-git is-inside-work prefix git-dir absolute-git-dir
t/t1503-rev-parse-verify.sh +3 -0
index dc9fe3cbf1..e4343c49b2 100755
@@ -6,6 +6,9 @@ test_description='test git rev-parse --verify'
 
 exec </dev/null
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 add_line_into_file()
t/t1505-rev-parse-last.sh +3 -0
index 4969edb314..9bd0307b5d 100755
@@ -2,6 +2,9 @@
 
 test_description='test @{-N} syntax'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 
t/t1506-rev-parse-diagnosis.sh +3 -0
index e2ae15a2cf..694d74fc01 100755
@@ -4,6 +4,9 @@ test_description='test git rev-parse diagnosis for invalid argument'
 
 exec </dev/null
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_did_you_mean ()
t/t1507-rev-parse-upstream.sh +3 -0
index dfc0d96d8a..521233a3c3 100755
@@ -2,6 +2,9 @@
 
 test_description='test <branch>@{upstream} syntax'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 
t/t1508-at-combinations.sh +3 -0
index 4a9964e9dc..8e73633761 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test various @{X} syntax combinations together'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 check() {
t/t1511-rev-parse-caret.sh +3 -0
index e0a49a651f..cfb2ea5e04 100755
@@ -2,6 +2,9 @@
 
 test_description='tests for ref^{stuff}'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t1512-rev-parse-disambiguation.sh +3 -0
index 18fa6cf40d..2ef1f2b7e8 100755
@@ -20,6 +20,9 @@ one tagged as v1.0.0.  They all have one regular file each.
 
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 if ! test_have_prereq SHA1
t/t1513-rev-parse-prefix.sh +3 -0
index 87ec3ae714..d151ef9218 100755
@@ -2,6 +2,9 @@
 
 test_description='Tests for rev-parse --prefix'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t1514-rev-parse-push.sh +3 -0
index 788cc91e45..173ba2792b 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test <branch>@{push} syntax'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 resolve () {
t/t1700-split-index.sh +3 -0
index 12a5568844..7d4a6f1e93 100755
@@ -2,6 +2,9 @@
 
 test_description='split index mode tests'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # We need total control of index splitting here
t/t2007-checkout-symlink.sh +3 -0
index fc9aad530e..8879a78b85 100755
@@ -4,6 +4,9 @@
 
 test_description='git checkout to switch between branches with symlink<->dir'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t2009-checkout-statinfo.sh +3 -0
index f3c2152087..9af4d6ca5e 100755
@@ -2,6 +2,9 @@
 
 test_description='checkout should leave clean stat info'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t2010-checkout-ambiguous.sh +3 -0
index 2e47fe01cf..3f5431e033 100755
@@ -2,6 +2,9 @@
 
 test_description='checkout and pathspecs/refspecs ambiguities'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t2011-checkout-invalid-head.sh +3 -0
index 0e8d56aa76..fede33ff1f 100755
@@ -2,6 +2,9 @@
 
 test_description='checkout switching away from an invalid branch'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t2012-checkout-last.sh +3 -0
index e7ba8c505f..16bf19f7ee 100755
@@ -2,6 +2,9 @@
 
 test_description='checkout can switch to last branch and merge base'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t2015-checkout-unborn.sh +3 -0
index 37bdcedcc9..669a70c76f 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='checkout from unborn branch'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t2017-checkout-orphan.sh +3 -0
index 655f278c5f..999e976c62 100755
@@ -7,6 +7,9 @@ test_description='git checkout --orphan
 
 Main Tests for --orphan functionality.'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 TEST_FILE=foo
t/t2020-checkout-detach.sh +3 -0
index b748db9946..45d87c23b1 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='checkout into detached HEAD state'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 check_detached () {
t/t2022-checkout-paths.sh +3 -0
index 6844afafc0..fc0f5b775c 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='checkout $tree -- $paths'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t2023-checkout-m.sh +3 -0
index fca3f85824..f2f4f5b3ac 100755
@@ -4,6 +4,9 @@ test_description='checkout -m -- <conflicted path>
 
 Ensures that checkout -m on a resolved file restores the conflicted file'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t2027-checkout-track.sh +3 -0
index bcba1bf90c..4e1419ca98 100755
@@ -2,6 +2,9 @@
 
 test_description='tests for git branch --track'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t2030-unresolve-info.sh +3 -0
index 309199bca2..3fe29fc3ee 100755
@@ -2,6 +2,9 @@
 
 test_description='undoing resolution'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 check_resolve_undo () {
t/t2060-switch.sh +3 -0
index 68c9101b02..4de9299705 100755
@@ -2,6 +2,9 @@
 
 test_description='switch basic functionality'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t2070-restore.sh +3 -0
index 89e5a142c9..6941769c9a 100755
@@ -2,6 +2,9 @@
 
 test_description='restore basic functionality'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t2400-worktree-add.sh +3 -0
index 5a7495474a..35cef266e9 100755
@@ -2,6 +2,9 @@
 
 test_description='test git worktree add'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 . "$TEST_DIRECTORY"/lib-rebase.sh
t/t2401-worktree-prune.sh +3 -0
index a6ce7f590b..e6fc27de1e 100755
@@ -2,6 +2,9 @@
 
 test_description='prune $GIT_DIR/worktrees'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success initialize '
t/t2402-worktree-list.sh +3 -0
index 795ddca2e4..3b23b0fdb7 100755
@@ -2,6 +2,9 @@
 
 test_description='test git worktree list'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t2405-worktree-submodule.sh +3 -0
index e1b2bfd87e..cca2aea658 100755
@@ -2,6 +2,9 @@
 
 test_description='Combination of submodules and multiple worktrees'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 base_path=$(pwd -P)
t/t3200-branch.sh +3 -0
index a0b832d59e..04b568cf21 100755
@@ -5,6 +5,9 @@
 
 test_description='git branch assorted tests'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-rebase.sh
 
t/t3201-branch-contains.sh +3 -0
index 3733cd0091..532cdbe9ae 100755
@@ -2,6 +2,9 @@
 
 test_description='branch --contains <commit>, --no-contains <commit> --merged, and --no-merged'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t3202-show-branch-octopus.sh +3 -0
index 6adf47869c..bbf7129dd8 100755
@@ -2,6 +2,9 @@
 
 test_description='test show-branch with more than 8 heads'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 numbers="1 2 3 4 5 6 7 8 9 10"
t/t3203-branch-output.sh +3 -0
index d65586541d..a2144dd8e5 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='git branch display tests'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-terminal.sh
 
t/t3204-branch-name-interpretation.sh +3 -0
index 698d9cc4f3..dd315ebf04 100755
@@ -6,6 +6,9 @@ Branch name arguments are usually names which are taken to be inside of
 refs/heads/, but we interpret some magic syntax like @{-1}, @{upstream}, etc.
 This script aims to check the behavior of those corner cases.
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 expect_branch() {
t/t3205-branch-color.sh +3 -0
index 289625c464..8b54a9252b 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='basic branch output coloring'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'set up some sample branches' '
t/t3206-range-diff.sh +3 -0
index 6eb344be03..3813ddc85e 100755
@@ -2,6 +2,9 @@
 
 test_description='range-diff tests'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # Note that because of the range-diff's heuristics, test_commit does more
t/t3210-pack-refs.sh +3 -0
index f41b2afb99..90eea19564 100755
@@ -9,6 +9,9 @@ test_description='git pack-refs should not change the branch semantic
 This test runs git pack-refs and git show-ref and checks that the branch
 semantic is still the same.
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'enable reflogs' '
t/t3211-peel-ref.sh +3 -0
index 3b7caca421..f3d9c6b6b6 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='tests for the peel_ref optimization of packed-refs'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'create annotated tag in refs/tags' '
t/t3302-notes-index-expensive.sh +3 -0
index 7217c5e222..1564befe00 100755
@@ -5,6 +5,9 @@
 
 test_description='Test commit notes index (expensive!)'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 create_repo () {
t/t3303-notes-subtrees.sh +3 -0
index 704aee81ef..16f3438355 100755
@@ -2,6 +2,9 @@
 
 test_description='Test commit notes organized in subtrees'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 number_of_commits=100
t/t3304-notes-mixed.sh +3 -0
index 1709e8c00b..6a7b8e2829 100755
@@ -2,6 +2,9 @@
 
 test_description='Test notes trees that also contain non-notes'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 number_of_commits=100
t/t3320-notes-merge-worktrees.sh +3 -0
index 823fdbda1f..f86975414c 100755
@@ -5,6 +5,9 @@
 
 test_description='Test merging of notes trees in multiple worktrees'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup commit' '
t/t3400-rebase.sh +3 -0
index 40d2975995..61577591d0 100755
@@ -8,6 +8,9 @@ test_description='git rebase assorted tests
 This test runs git rebase and checks that the author information is not lost
 among other things.
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 GIT_AUTHOR_NAME=author@name
t/t3402-rebase-merge.sh +3 -0
index 6e032716a6..d79a11b686 100755
@@ -5,6 +5,9 @@
 
 test_description='git rebase --merge test'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 T="A quick brown fox
t/t3403-rebase-skip.sh +3 -0
index a927774910..c9936cb1d9 100755
@@ -5,6 +5,9 @@
 
 test_description='git rebase --merge --skip tests'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 . "$TEST_DIRECTORY"/lib-rebase.sh
t/t3404-rebase-interactive.sh +3 -0
index 1e56696e4f..9c91524e12 100755
@@ -25,6 +25,9 @@ Initial setup:
  where A, B, D and G all touch file1, and one, two, three, four all
  touch file "conflict".
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 . "$TEST_DIRECTORY"/lib-rebase.sh
t/t3405-rebase-malformed.sh +3 -0
index 860e63e444..d8f6d2e3cb 100755
@@ -2,6 +2,9 @@
 
 test_description='rebase should handle arbitrary git message'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-rebase.sh
 
t/t3406-rebase-message.sh +3 -0
index 4afc528165..863db3ac4c 100755
@@ -2,6 +2,9 @@
 
 test_description='messages from rebase operation'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t3407-rebase-abort.sh +3 -0
index 97efea0f56..e3c1851f40 100755
@@ -2,6 +2,9 @@
 
 test_description='git rebase --abort tests'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 ### Test that we handle space characters properly
t/t3408-rebase-multi-line.sh +3 -0
index d2bd7c17b0..6dd56c4c15 100755
@@ -2,6 +2,9 @@
 
 test_description='rebasing a commit with multi-line first paragraph.'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t3409-rebase-preserve-merges.sh +3 -0
index 3b340f1ece..609efc96f9 100755
@@ -6,6 +6,9 @@ test_description='git rebase -p should preserve merges
 
 Run "git rebase -p" and check that merges are properly carried along
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 if ! test_have_prereq REBASE_P; then
t/t3412-rebase-root.sh +3 -0
index 21632a984e..07597643c5 100755
@@ -4,6 +4,9 @@ test_description='git rebase --root
 
 Tests if git rebase --root --onto <newparent> can rebase the root commit.
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 log_with_names () {
t/t3413-rebase-hook.sh +3 -0
index b6833e9a5f..86a1b82d65 100755
@@ -2,6 +2,9 @@
 
 test_description='git rebase with its hook(s)'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t3415-rebase-autosquash.sh +3 -0
index 7bab6000dc..35eb8e2bb2 100755
@@ -2,6 +2,9 @@
 
 test_description='auto squash'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 . "$TEST_DIRECTORY"/lib-rebase.sh
t/t3416-rebase-onto-threedots.sh +3 -0
index 9c2548423b..0f5b814aaf 100755
@@ -2,6 +2,9 @@
 
 test_description='git rebase --onto A...B'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY/lib-rebase.sh"
 
t/t3418-rebase-continue.sh +3 -0
index 7a2da972fd..445cb843ba 100755
@@ -2,6 +2,9 @@
 
 test_description='git rebase --continue tests'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 . "$TEST_DIRECTORY"/lib-rebase.sh
t/t3419-rebase-patch-id.sh +3 -0
index 1f32faa4a4..c5fe58d68b 100755
@@ -2,6 +2,9 @@
 
 test_description='git rebase - test patch id computation'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 scramble () {
t/t3420-rebase-autostash.sh +3 -0
index ca331733fb..95facc49aa 100755
@@ -4,6 +4,9 @@
 #
 
 test_description='git rebase --autostash tests'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t3427-rebase-subtree.sh +3 -0
index 5839719ba1..254ed18452 100755
@@ -4,6 +4,9 @@ test_description='git rebase tests for -Xsubtree
 
 This test runs git rebase and tests the subtree strategy.
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-rebase.sh
 
t/t3430-rebase-merges.sh +3 -0
index b454f400eb..22d929bd31 100755
@@ -18,6 +18,9 @@ Initial setup:
      \
       Conflicting-G
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-rebase.sh
 . "$TEST_DIRECTORY"/lib-log-graph.sh
t/t3431-rebase-fork-point.sh +3 -0
index 172562789e..af862e5bcc 100755
@@ -5,6 +5,9 @@
 
 test_description='git rebase --fork-point test'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # A---B---D---E    (master)
t/t3432-rebase-fast-forward.sh +3 -0
index a29eda87e9..112a18d630 100755
@@ -5,6 +5,9 @@
 
 test_description='ensure rebase fast-forwards commits when possible'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t3434-rebase-i18n.sh +3 -0
index c7c835cde9..26fd33cbed 100755
@@ -14,6 +14,9 @@ Initial setup:
     5 - 6          second
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 compare_msg () {
t/t3435-rebase-gpg-sign.sh +3 -0
index 54120b09d6..d169bc511d 100755
@@ -5,6 +5,9 @@
 
 test_description='test rebase --[no-]gpg-sign'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY/lib-rebase.sh"
 . "$TEST_DIRECTORY/lib-gpg.sh"
t/t3500-cherry.sh +3 -0
index 2b8d9cb38e..99905dd49a 100755
@@ -8,6 +8,9 @@ test_description='git cherry should detect patches integrated upstream
 This test cherry-picks one local change of two into master branch, and
 checks that git cherry only returns the second patch in the local branch
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 GIT_AUTHOR_EMAIL=bogus_email_address
t/t3501-revert-cherry-pick.sh +3 -0
index 3669dfb1be..6a10714e22 100755
@@ -10,6 +10,9 @@ test_description='test cherry-pick and revert with renames
 
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t3502-cherry-pick-merge.sh +3 -0
index 8b635a196d..774ad9ce14 100755
@@ -8,6 +8,9 @@ test_description='cherry picking and reverting a merge
 
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t3503-cherry-pick-root.sh +3 -0
index e27f39d1e5..00c622d5dc 100755
@@ -2,6 +2,9 @@
 
 test_description='test cherry-picking (and reverting) a root commit'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t3504-cherry-pick-rerere.sh +3 -0
index 80a0d08706..860ba0b496 100755
@@ -2,6 +2,9 @@
 
 test_description='cherry-pick should rerere for conflicts'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t3505-cherry-pick-empty.sh +3 -0
index 5f911bb529..20cd4052d4 100755
@@ -2,6 +2,9 @@
 
 test_description='test cherry-picking an empty commit'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t3506-cherry-pick-ff.sh +3 -0
index 9d5adbc130..a105a782f6 100755
@@ -2,6 +2,9 @@
 
 test_description='test cherry-picking with --ff option'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t3507-cherry-pick-conflict.sh +3 -0
index a21adcf0e4..e94264e578 100755
@@ -9,6 +9,9 @@ test_description='test cherry-pick and revert with conflicts
 
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 pristine_detach () {
t/t3508-cherry-pick-many-commits.sh +3 -0
index 23070a7b73..b967bf0639 100755
@@ -2,6 +2,9 @@
 
 test_description='test cherry-picking many commits'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 check_head_differs_from() {
t/t3509-cherry-pick-merge-df.sh +3 -0
index 1e5b3948df..83cab7b2ed 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='Test cherry-pick with directory/file conflicts'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'Initialize repository' '
t/t3512-cherry-pick-submodule.sh +3 -0
index 6ece1d8573..ff33c6d5c9 100755
@@ -2,6 +2,9 @@
 
 test_description='cherry-pick can handle submodules'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-submodule-update.sh
 
t/t3600-rm.sh +3 -0
index efec8d13b6..3baa64bf99 100755
@@ -5,6 +5,9 @@
 
 test_description='Test of the various options to git rm.'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # Setup some files to be removed, some with funny characters
t/t3701-add-interactive.sh +3 -0
index ca04fac417..9be7527531 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='add -i basic tests'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-terminal.sh
 
t/t3901-i18n-patch.sh +3 -0
index 923eb01f0e..bde27227b6 100755
@@ -5,6 +5,9 @@
 
 test_description='i18n settings and format-patch | am pipe'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 check_encoding () {
t/t3903-stash.sh +3 -0
index 9f7ca98967..49d52c46ad 100755
@@ -5,6 +5,9 @@
 
 test_description='Test git stash'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 diff_cmp () {
t/t3910-mac-os-precompose.sh +3 -0
index 54ce19e353..a2d1cdec6d 100755
@@ -5,6 +5,9 @@
 
 test_description='utf-8 decomposed (nfd) converted to precomposed (nfc)'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 if ! test_have_prereq UTF8_NFD_TO_NFC
t/t4013-diff-various.sh +3 -0
index f72d456d3b..45f68ebcdb 100755
@@ -5,6 +5,9 @@
 
 test_description='Various diff formatting options'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/diff-lib.sh
 
t/t4014-format-patch.sh +3 -0
index c5e5e0da3f..276aea32a6 100755
@@ -5,6 +5,9 @@
 
 test_description='various format-patch tests'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-terminal.sh
 
t/t4017-diff-retval.sh +3 -0
index 95a7ca7070..0b379c307b 100755
@@ -2,6 +2,9 @@
 
 test_description='Return value of diffs'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t4038-diff-combined.sh +3 -0
index 94680836ce..e873abb1da 100755
@@ -2,6 +2,9 @@
 
 test_description='combined diff'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/diff-lib.sh
 
t/t4041-diff-submodule-option.sh +3 -0
index f852136585..8014cd684b 100755
@@ -9,6 +9,9 @@ test_description='Support for verbose submodule differences in git diff
 This test tries to verify the sanity of the --submodule option of git diff.
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # Tested non-UTF-8 encoding
t/t4048-diff-combined-binary.sh +3 -0
index 7f9ad9fa3d..e2780e697a 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='combined and merge diff handle binary files and textconv'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup binary merge conflict' '
t/t4052-stat-output.sh +3 -0
index 28c053849a..a9aef7f986 100755
@@ -5,6 +5,9 @@
 
 test_description='test --stat output of various commands'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-terminal.sh
 
t/t4056-diff-order.sh +3 -0
index 43dd474a12..723eee4e8e 100755
@@ -2,6 +2,9 @@
 
 test_description='diff order'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 create_files () {
t/t4057-diff-combined-paths.sh +3 -0
index 0b78573733..71af157bf9 100755
@@ -2,6 +2,9 @@
 
 test_description='combined diff show only paths that are different to all parents'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # verify that diffc.expect matches output of
t/t4061-diff-indent.sh +3 -0
index 0f7a6d97a8..cbe64d5f79 100755
@@ -3,6 +3,9 @@
 test_description='Test diff indent heuristic.
 
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/diff-lib.sh
 
t/t4066-diff-emit-delay.sh +3 -0
index 6331f63b12..1983f1ebbe 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test combined/stat/moved interaction'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # This test covers a weird 3-way interaction between "--cc -p", which will run
t/t4068-diff-symmetric-merge-base.sh +3 -0
index 03487cc945..55d47352ba 100755
@@ -2,6 +2,9 @@
 
 test_description='behavior of diff with symmetric-diff setups and --merge-base'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # build these situations:
t/t4103-apply-binary.sh +3 -0
index 1b420e3b5f..ee4a74b132 100755
@@ -6,6 +6,9 @@
 test_description='git apply handling binary patches
 
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t4108-apply-threeway.sh +3 -0
index d7349ced6b..0a091dc5a0 100755
@@ -2,6 +2,9 @@
 
 test_description='git apply --3way'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 print_sanitized_conflicted_diff () {
t/t4121-apply-diffs.sh +3 -0
index 66368effd5..60deb3bf78 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='git apply for contextually independent diffs'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 echo '1
t/t4122-apply-symlink-inside.sh +3 -0
index 4acb3f336e..71deaf779d 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='apply to deeper directory without getting fooled with symlink'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t4150-am.sh +3 -0
index 3ecbef6f8e..e1ffc04852 100755
@@ -2,6 +2,9 @@
 
 test_description='git am running'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup: messages' '
t/t4200-rerere.sh +3 -0
index b12b43e9e9..1f1a809c60 100755
@@ -22,6 +22,9 @@ test_description='git rerere
 ++++++ [master] initial
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t4201-shortlog.sh +3 -0
index 3d5c4a2086..ad6d3eebe5 100755
@@ -6,6 +6,9 @@
 test_description='git shortlog
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t4202-log.sh +3 -0
index 56d34ed465..6c7a3cfc2c 100755
@@ -2,6 +2,9 @@
 
 test_description='git log'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY/lib-gpg.sh"
 . "$TEST_DIRECTORY/lib-terminal.sh"
t/t4203-mailmap.sh +3 -0
index 586c3a86b1..8a2f8984f6 100755
@@ -2,6 +2,9 @@
 
 test_description='.mailmap configurations'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 fuzz_blame () {
t/t4204-patch-id.sh +3 -0
index 8ff8bd84c7..46ecb777f4 100755
@@ -2,6 +2,9 @@
 
 test_description='git patch-id'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t4207-log-decoration-colors.sh +3 -0
index 60f040cab8..6c868df38d 100755
@@ -5,6 +5,9 @@
 
 test_description='Test for "git log --decorate" colors'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t4208-log-magic-pathspec.sh +3 -0
index 6cdbe4747a..1938d4a58f 100755
@@ -2,6 +2,9 @@
 
 test_description='magic pathspec tests using git-log'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t4211-line-log.sh +3 -0
index 85d151423d..59c258429d 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test log -L'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup (import history)' '
t/t4214-log-graph-octopus.sh +3 -0
index a080325098..981b83513a 100755
@@ -2,6 +2,9 @@
 
 test_description='git log --graph of skewed left octopus merge.'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-log-graph.sh
 
t/t4216-log-bloom.sh +3 -0
index d11040ce41..b3f3820dbb 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='git log for a path with Bloom filters'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 GIT_TEST_COMMIT_GRAPH=0
t/t4253-am-keep-cr-dos.sh +3 -0
index 6e1b73ec3a..ec7ba62d67 100755
@@ -6,6 +6,9 @@
 test_description='git-am mbox with dos line ending.
 
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # Three patches which will be added as files with dos line ending.
t/t5150-request-pull.sh +3 -0
index c1811ea0f4..752e1fb2d2 100755
@@ -2,6 +2,9 @@
 
 test_description='Test workflows involving pull request.'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 if ! test_have_prereq PERL
t/t5304-prune.sh +3 -0
index df60f18fb8..bd5f71e396 100755
@@ -4,6 +4,9 @@
 #
 
 test_description='prune'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 day=$((60*60*24))
t/t5305-include-tag.sh +3 -0
index a5eca210b8..2e56887ed5 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='git pack-object --include-tag'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 TRASH=$(pwd)
t/t5310-pack-bitmaps.sh +3 -0
index 8318781d2b..7842eb0977 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='exercise basic bitmap functionality'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 objpath () {
t/t5312-prune-corruption.sh +3 -0
index da9d59940d..c70b5db2a0 100755
@@ -8,6 +8,9 @@ bail out or to proceed using it as a reachable tip, but it is _not_
 OK to proceed as if it did not exist. Otherwise we might silently
 delete objects that cannot be recovered.
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'disable reflogs' '
t/t5317-pack-objects-filter-objects.sh +3 -0
index dc0446574b..f19c521292 100755
@@ -2,6 +2,9 @@
 
 test_description='git pack-objects using object filtering'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # Test blob:none filter.
t/t5322-pack-objects-sparse.sh +3 -0
index a581eaf529..c92658d026 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='pack-objects object selection using sparse algorithm'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup repo' '
t/t5400-send-pack.sh +3 -0
index cc86ef213e..6be028f3e2 100755
@@ -6,6 +6,9 @@
 test_description='See why rewinding head breaks send-pack
 
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 cnt=64
t/t5402-post-merge-hook.sh +3 -0
index 4aeea8f5b7..27fc6ec4f3 100755
@@ -4,6 +4,9 @@
 #
 
 test_description='Test the post-merge hook.'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t5403-post-checkout-hook.sh +3 -0
index a39b3b5c78..ed91aadd95 100755
@@ -4,6 +4,9 @@
 #
 
 test_description='Test the post-checkout hook.'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t5404-tracking-branches.sh +3 -0
index 2762f420bc..da37b22fc5 100755
@@ -2,6 +2,9 @@
 
 test_description='tracking branch update checks for git push'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t5405-send-pack-rewind.sh +3 -0
index 235fb7686a..1f5b33b562 100755
@@ -2,6 +2,9 @@
 
 test_description='forced push to replace commit we do not have'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t5407-post-rewrite-hook.sh +3 -0
index 80750a817e..78bffa64d7 100755
@@ -4,6 +4,9 @@
 #
 
 test_description='Test the post-rewrite hook.'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t5410-receive-pack-alternates.sh +3 -0
index f00d0da860..30a4e6bb1a 100755
@@ -2,6 +2,9 @@
 
 test_description='git receive-pack with alternate ref filtering'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t5500-fetch-pack.sh +3 -0
index 3557374312..4edb8c196e 100755
@@ -5,6 +5,9 @@
 
 test_description='Testing multi_ack pack fetching'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # Test fetch-pack/upload-pack pair.
t/t5501-fetch-push-alternates.sh +3 -0
index 1bc57ac03f..96ce28b6ba 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='fetch/push involving alternates'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 count_objects () {
t/t5502-quickfetch.sh +3 -0
index 7a46cbdbe6..e15a472e4c 100755
@@ -2,6 +2,9 @@
 
 test_description='test quickfetch from local'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t5503-tagfollow.sh +3 -0
index 6041a4dd32..cd1f407174 100755
@@ -2,6 +2,9 @@
 
 test_description='test automatic tag following'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # End state of the repository:
t/t5504-fetch-receive-strict.sh +3 -0
index 1a16ac4c0d..7fe21b176d 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='fetch/receive strict mode'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup and inject "corrupt or missing" object' '
t/t5505-remote.sh +3 -0
index eaa6e90220..2b6e1f50f8 100755
@@ -2,6 +2,9 @@
 
 test_description='git remote porcelain-ish'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 setup_repository () {
t/t5506-remote-groups.sh +3 -0
index 83d5558c0e..bf3aa85da5 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='git remote group handling'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 mark() {
t/t5509-fetch-push-namespaces.sh +3 -0
index a67f792adf..f234dba91a 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='fetch/push involving ref namespaces'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t5510-fetch.sh +3 -0
index 5d673358f9..4af490b6db 100755
@@ -5,6 +5,9 @@ test_description='Per branch config variables affects "git fetch".
 
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 D=$(pwd)
t/t5512-ls-remote.sh +3 -0
index e98c3a0174..a892807de2 100755
@@ -2,6 +2,9 @@
 
 test_description='git ls-remote'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 generate_references () {
t/t5514-fetch-multiple.sh +3 -0
index bd202ec6f3..f12a83f82b 100755
@@ -2,6 +2,9 @@
 
 test_description='fetch --all works correctly'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 setup_repository () {
t/t5516-fetch-push.sh +3 -0
index d11382f769..7003467523 100755
@@ -14,6 +14,9 @@ This test checks the following functionality:
 * reflogs
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 D=$(pwd)
t/t5517-push-mirror.sh +3 -0
index e4edd56404..aa6405b452 100755
@@ -2,6 +2,9 @@
 
 test_description='pushing to a mirror repository'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 D=$(pwd)
t/t5518-fetch-exit-status.sh +3 -0
index c2060bb870..a94d0744d0 100755
@@ -5,6 +5,9 @@
 
 test_description='fetch exit status test'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t5519-push-alternates.sh +3 -0
index 11fcd37700..0f199d0ccb 100755
@@ -2,6 +2,9 @@
 
 test_description='push to a repository that borrows from elsewhere'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t5520-pull.sh +3 -0
index 9fae07cdfa..b6b21c6cd1 100755
@@ -2,6 +2,9 @@
 
 test_description='pulling into void'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 modify () {
t/t5521-pull-options.sh +3 -0
index db1a381cd9..f0806f3eb5 100755
@@ -2,6 +2,9 @@
 
 test_description='pull options'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t5523-push-upstream.sh +3 -0
index e47b5db5d6..0e6c7c251b 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='push with --set-upstream'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-terminal.sh
 
t/t5526-fetch-submodules.sh +3 -0
index dd8e423d25..40fb276e0e 100755
@@ -3,6 +3,9 @@
 
 test_description='Recursive "git fetch" for submodules'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 pwd=$(pwd)
t/t5527-fetch-odd-refs.sh +3 -0
index 3b0cb98422..4aa1fb7281 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test fetching of oddly-named refs'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # afterwards we will have:
t/t5528-push-default.sh +3 -0
index f0a287d97d..b39b5171dc 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='check various push.default settings'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup bare remotes' '
t/t5531-deep-submodule-push.sh +3 -0
index 4ad059e6be..010f5a0207 100755
@@ -2,6 +2,9 @@
 
 test_description='test push with submodules'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t5533-push-cas.sh +3 -0
index 7813e8470e..a7f0f098dd 100755
@@ -2,6 +2,9 @@
 
 test_description='compare & swap push force/delete safety'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 setup_srcdst_basic () {
t/t5534-push-signed.sh +3 -0
index af0385fb89..6ab458684d 100755
@@ -2,6 +2,9 @@
 
 test_description='signed push'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-gpg.sh
 
t/t5537-fetch-shallow.sh +3 -0
index a55202d2d3..6de384a5ea 100755
@@ -2,6 +2,9 @@
 
 test_description='fetch/clone from a shallow clone'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 commit() {
t/t5538-push-shallow.sh +3 -0
index ecbf84d21c..1253429d5d 100755
@@ -2,6 +2,9 @@
 
 test_description='push from/to a shallow clone'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 commit() {
t/t5539-fetch-http-shallow.sh +3 -0
index 82aa99ae87..1da2a7533e 100755
@@ -2,6 +2,9 @@
 
 test_description='fetch/clone from a shallow clone over http'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-httpd.sh
 start_httpd
t/t5540-http-push-webdav.sh +3 -0
index 450321fddb..751116e123 100755
@@ -7,6 +7,9 @@ test_description='test WebDAV http-push
 
 This test runs various sanity checks on http-push.'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 if git http-push > /dev/null 2>&1 || [ $? -eq 128 ]
t/t5541-http-push-smart.sh +3 -0
index 187454f5dd..2836b87239 100755
@@ -4,6 +4,9 @@
 #
 
 test_description='test smart pushing over http via http-backend'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 ROOT_PATH="$PWD"
t/t5542-push-http-shallow.sh +3 -0
index ddc1db722d..0feec9c449 100755
@@ -2,6 +2,9 @@
 
 test_description='push from/to a shallow clone over http'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-httpd.sh
 start_httpd
t/t5543-atomic-push.sh +3 -0
index 620c30d58f..16a8fc7535 100755
@@ -2,6 +2,9 @@
 
 test_description='pushing to a repository using the atomic push option'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 mk_repo_pair () {
t/t5545-push-options.sh +3 -0
index 38e6f7340e..202d75aebe 100755
@@ -2,6 +2,9 @@
 
 test_description='pushing to a repository using push options'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 mk_repo_pair () {
t/t5550-http-fetch-dumb.sh +3 -0
index 483578b2d7..9ec91792c3 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test dumb fetching over http via static file'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-httpd.sh
 start_httpd
t/t5551-http-fetch-smart.sh +3 -0
index e40e9ed52f..310b89dbab 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test smart fetching over http via http-backend'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-httpd.sh
 start_httpd
t/t5553-set-upstream.sh +3 -0
index 7622981cbf..e78a21881f 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='"git fetch/pull --set-upstream" basic tests.'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 check_config () {
t/t5560-http-backend-noserver.sh +3 -0
index 9fafcf1945..5561b7d012 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test git-http-backend-noserver'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 HTTPD_DOCUMENT_ROOT_PATH="$TRASH_DIRECTORY"
t/t5561-http-backend.sh +3 -0
index 6eb0294978..cba2dffdb0 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test git-http-backend'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-httpd.sh
 
t/t5570-git-daemon.sh +3 -0
index 8f69a7854f..2e99a331c5 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test fetching over git protocol'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 . "$TEST_DIRECTORY"/lib-git-daemon.sh
t/t5571-pre-push-hook.sh +3 -0
index ac53d63869..971ed3da4b 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='check pre-push hooks'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # Setup hook that always succeeds
t/t5580-unc-paths.sh +3 -0
index cf768b3a27..da4c94cce1 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='various Windows-only path tests'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 if test_have_prereq CYGWIN
t/t5581-http-curl-verbose.sh +3 -0
index 927aad0820..907bb062d6 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test GIT_CURL_VERBOSE'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-httpd.sh
 start_httpd
t/t5582-fetch-negative-refspec.sh +3 -0
index 8c61e28fec..608e9aa189 100755
@@ -5,6 +5,9 @@ test_description='"git fetch" with negative refspecs.
 
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t5601-clone.sh +3 -0
index 7df3c5373a..e01c5fe02d 100755
@@ -2,6 +2,9 @@
 
 test_description=clone
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 X=
t/t5604-clone-reference.sh +3 -0
index 2f7be23044..20fbb1e9a3 100755
@@ -4,6 +4,9 @@
 #
 
 test_description='test clone --reference'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 base_dir=$(pwd)
t/t5605-clone-local.sh +3 -0
index af23419ebf..94028044b0 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test local clone'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 repo_is_hardlinked() {
t/t5606-clone-options.sh +3 -0
index 7f082fb23b..3893a49e6d 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='basic clone options'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t5607-clone-bundle.sh +3 -0
index 26985f4b44..6e2e4adbb4 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='some bundle related tests'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t5609-clone-branch.sh +3 -0
index 6e7a7be052..e4d5124f89 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='clone --branch option'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 check_HEAD() {
t/t5610-clone-detached.sh +3 -0
index 8b0d607df1..ba63ba8f42 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test cloning a repository with detached HEAD'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 head_is_detached() {
t/t5611-clone-config.sh +3 -0
index 8e0fd39823..be4ae10c82 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='tests for git clone -c key=value'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'clone -c sets config in cloned repo' '
t/t5612-clone-refspec.sh +3 -0
index e3b436d8ae..9e37f7fef7 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test refspec written by clone-command'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t5616-partial-clone.sh +3 -0
index f4d49d8335..b2c3ed4088 100755
@@ -2,6 +2,9 @@
 
 test_description='git partial clone'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # create a normal "src" repo where we can later create new commits.
t/t5617-clone-submodules-remote.sh +3 -0
index 1a041df10b..cba468fc53 100755
@@ -2,6 +2,9 @@
 
 test_description='Test cloning repos with submodules using remote-tracking branches'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 pwd=$(pwd)
t/t5700-protocol-v1.sh +3 -0
index 022901b9eb..7f0056c1ed 100755
@@ -8,6 +8,9 @@ TEST_NO_CREATE_REPO=1
 GIT_TEST_PROTOCOL_VERSION=0
 export GIT_TEST_PROTOCOL_VERSION
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # Test protocol v1 with 'git://' transport
t/t5701-git-serve.sh +3 -0
index a1f5fdc9fd..66c47e61d8 100755
@@ -2,6 +2,9 @@
 
 test_description='test protocol v2 server commands'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'test capability advertisement' '
t/t5702-protocol-v2.sh +3 -0
index 7d5b17909b..f1f77fe089 100755
@@ -4,6 +4,9 @@ test_description='test git wire-protocol version 2'
 
 TEST_NO_CREATE_REPO=1
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # Test protocol v2 with 'git://' transport
t/t5703-upload-pack-ref-in-want.sh +3 -0
index b46940b725..c3a52d478f 100755
@@ -2,6 +2,9 @@
 
 test_description='upload-pack ref-in-want'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 get_actual_refs () {
t/t5801-remote-helpers.sh +3 -0
index 0f04b6cddb..1ecefb57fe 100755
@@ -5,6 +5,9 @@
 
 test_description='Test remote-helper import and export commands'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-gpg.sh
 
t/t6000-rev-list-misc.sh +3 -0
index fc4d55dcb2..664000adf0 100755
@@ -2,6 +2,9 @@
 
 test_description='miscellaneous rev-list tests'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t6001-rev-list-graft.sh +3 -0
index 7504ba4751..67c384f1e8 100755
@@ -2,6 +2,9 @@
 
 test_description='Revision traversal vs grafts and path limiter'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t6004-rev-list-path-optim.sh +3 -0
index 3e8c42ee0b..ff788199e3 100755
@@ -13,6 +13,9 @@ test_description='git rev-list trivial path optimization test
 
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t6006-rev-list-format.sh +3 -0
index 99a1eaf332..bbbd577f10 100755
@@ -5,6 +5,9 @@
 
 test_description='git rev-list --pretty=format test'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-terminal.sh
 
t/t6007-rev-list-cherry-pick-file.sh +3 -0
index f0268372d2..51547ac3a5 100755
@@ -2,6 +2,9 @@
 
 test_description='test git rev-list --cherry-pick -- file'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # A---B---D---F
t/t6008-rev-list-submodule.sh +3 -0
index c4af9ca0a7..871ace31e2 100755
@@ -5,6 +5,9 @@
 
 test_description='git rev-list involving submodules that this repo has'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t6009-rev-list-parent.sh +3 -0
index 916d9692bc..114f755d52 100755
@@ -2,6 +2,9 @@
 
 test_description='ancestor culling and limiting by parent number'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 check_revlist () {
t/t6012-rev-list-simplify.sh +3 -0
index fd202fcb94..d163c24859 100755
@@ -2,6 +2,9 @@
 
 test_description='merge simplification'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 note () {
t/t6013-rev-list-reverse-parents.sh +3 -0
index 89458d370f..0298174956 100755
@@ -2,6 +2,9 @@
 
 test_description='--reverse combines with --parents'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 
t/t6016-rev-list-graph-simplify-history.sh +3 -0
index f5e6e92f5b..3fb7ee0be4 100755
@@ -7,6 +7,9 @@
 
 test_description='--graph and simplified history'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'set up rev-list --graph test' '
t/t6017-rev-list-stdin.sh +3 -0
index 667b37564e..e51fe7b9bc 100755
@@ -5,6 +5,9 @@
 
 test_description='log family learns --stdin'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 check () {
t/t6018-rev-list-glob.sh +3 -0
index fe2f3cec3d..60a351c26a 100755
@@ -2,6 +2,9 @@
 
 test_description='rev-list/rev-parse --glob'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 commit () {
t/t6019-rev-list-ancestry-path.sh +3 -0
index 353f84313f..aeb7defaa3 100755
@@ -21,6 +21,9 @@ test_description='--ancestry-path'
 #  --ancestry-path G..M -- G.t == L
 #  --ancestry-path --simplify-merges G^..M -- G.t == G L
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_merge () {
t/t6030-bisect-porcelain.sh +3 -0
index aa226381be..7dc65c73cd 100755
@@ -6,6 +6,9 @@ test_description='Tests git bisect functionality'
 
 exec </dev/null
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 add_line_into_file()
t/t6040-tracking-info.sh +3 -0
index 50a934e1b2..bc95ff6f54 100755
@@ -2,6 +2,9 @@
 
 test_description='remote tracking stats'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 advance () {
t/t6050-replace.sh +3 -0
index c80dc10b8f..0a53462a61 100755
@@ -4,6 +4,9 @@
 #
 test_description='Tests replace refs functionality'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY/lib-gpg.sh"
 
t/t6101-rev-parse-parents.sh +3 -0
index 7531262a5e..19a56f4a4d 100755
@@ -5,6 +5,9 @@
 
 test_description='Test git rev-parse with different parent options'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_cmp_rev_output () {
t/t6110-rev-list-sparse.sh +3 -0
index 656ac7fe9d..69411862d6 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='operations that cull histories in unusual ways'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t6111-rev-list-treesame.sh +3 -0
index 4244638285..58b8d42bf3 100755
@@ -13,6 +13,9 @@
 
 test_description='TREESAME and limiting'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 note () {
t/t6112-rev-list-filters-objects.sh +3 -0
index de0e5a5d36..5f39c3adb3 100755
@@ -2,6 +2,9 @@
 
 test_description='git rev-list using object filtering'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # Test the blob:none filter.
t/t6120-describe.sh +3 -0
index f822d5d328..360e65d3b9 100755
@@ -11,6 +11,9 @@ test_description='test describe'
 #
 # First parent of a merge commit is on the same line, second parent below.
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 check_describe () {
t/t6200-fmt-merge-msg.sh +3 -0
index f3e66eaf9b..725b356d1e 100755
@@ -5,6 +5,9 @@
 
 test_description='fmt-merge-msg test'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY/lib-gpg.sh"
 
t/t6300-for-each-ref.sh +3 -0
index b359023189..b03740d634 100755
@@ -5,6 +5,9 @@
 
 test_description='for-each-ref test'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-gpg.sh
 . "$TEST_DIRECTORY"/lib-terminal.sh
t/t6302-for-each-ref-filter.sh +3 -0
index 0a21669f56..0f3e6aa011 100755
@@ -2,6 +2,9 @@
 
 test_description='test for-each-refs usage of ref-filter APIs'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-gpg.sh
 
t/t6400-merge-df.sh +3 -0
index 9da0838216..5fab2d2dd7 100755
@@ -4,6 +4,9 @@
 #
 
 test_description='Test merge with directory/file conflicts'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'prepare repository' '
t/t6402-merge-rename.sh +3 -0
index 3f64f62224..227c2feb08 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='Merge-recursive merging renames'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 modify () {
t/t6404-recursive-merge.sh +3 -0
index b1c3d4dda4..bdf8169456 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='Test merge without common ancestors'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # This scenario is based on a real-world repository of Shawn Pearce.
t/t6405-merge-symlinks.sh +3 -0
index 6c0a90d044..140e9e6ce6 100755
@@ -8,6 +8,9 @@ test_description='merging symlinks on filesystem w/o symlink support.
 This tests that git merge-recursive writes merge results as plain files
 if core.symlinks is false.'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t6406-merge-attr.sh +3 -0
index 76a55f838c..7fe4034d58 100755
@@ -5,6 +5,9 @@
 
 test_description='per path merge controlled by merge attribute'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t6407-merge-binary.sh +3 -0
index 4e6c7cb77e..826deacfd7 100755
@@ -2,6 +2,9 @@
 
 test_description='ask merge-recursive to merge binary files'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t6409-merge-subtree.sh +3 -0
index b8e8b6f642..e2c1cfc9fe 100755
@@ -2,6 +2,9 @@
 
 test_description='subtree merge strategy'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t6411-merge-filemode.sh +3 -0
index 87741efad3..7b66abfdbb 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='merge: handle file mode'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'set up mode change in one branch' '
t/t6412-merge-large-rename.sh +3 -0
index 80777386dc..d6840078c4 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='merging with large rename matrix'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 count() {
t/t6413-merge-crlf.sh +3 -0
index e8d65eefb5..3bd8e3e899 100755
@@ -8,6 +8,9 @@ test_description='merge conflict in crlf repo
 
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t6414-merge-rename-nocruft.sh +3 -0
index a25e730460..42824dcf49 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='Merge-recursive merging renames'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t6415-merge-dir-to-symlink.sh +3 -0
index 2eddcc7664..32c0b62496 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='merging when a directory was replaced with a symlink'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'create a commit where dir a/b changed to symlink' '
t/t6416-recursive-corner-cases.sh +3 -0
index 887c2195a9..6a740771ed 100755
@@ -2,6 +2,9 @@
 
 test_description='recursive merge corner cases involving criss-cross merges'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-merge.sh
 
t/t6417-merge-ours-theirs.sh +3 -0
index 0aebc6c028..e7883f890a 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='Merge-recursive ours and theirs variants'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t6418-merge-text-auto.sh +3 -0
index 30983d18b1..91b43de00d 100755
@@ -12,6 +12,9 @@ test_description='CRLF merge conflict across text=auto change
 *+ [side^] Initial
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_have_prereq SED_STRIPS_CR && SED_OPTIONS=-b
t/t6419-merge-ignorecase.sh +3 -0
index 531850d834..9996a94431 100755
@@ -2,6 +2,9 @@
 
 test_description='git-merge with case-changing rename on case-insensitive file system'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 if ! test_have_prereq CASE_INSENSITIVE_FS
t/t6422-merge-rename-corner-cases.sh +3 -0
index 78bfaf17f0..70c8af7f51 100755
@@ -3,6 +3,9 @@
 test_description="recursive merge corner cases w/ renames but not criss-crosses"
 # t6036 has corner cases that involve both criss-cross merges and renames
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-merge.sh
 
t/t6425-merge-rename-delete.sh +3 -0
index f79d021590..e58e3dfba1 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='Merge-recursive rename/delete conflict message'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'rename/delete' '
t/t6427-diff3-conflict-markers.sh +3 -0
index f4655bb358..c192ee4e42 100755
@@ -2,6 +2,9 @@
 
 test_description='recursive merge diff3 style conflict markers'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # Setup:
t/t6430-merge-recursive.sh +3 -0
index 9c08e63af2..acb2868260 100755
@@ -2,6 +2,9 @@
 
 test_description='merge-recursive backend test'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-merge.sh
 
t/t6432-merge-recursive-space-options.sh +3 -0
index b56180ee4a..1333cbb148 100755
@@ -11,6 +11,9 @@ test_description='merge-recursive space options
 *   ok 1: setup
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_have_prereq SED_STRIPS_CR && SED_OPTIONS=-b
t/t6433-merge-toplevel.sh +3 -0
index e29c284b9b..2d51b2d08c 100755
@@ -2,6 +2,9 @@
 
 test_description='"git merge" top-level frontend'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 t3033_reset () {
t/t6434-merge-recursive-rename-options.sh +3 -0
index 3d9fae68c4..7e877e96e2 100755
@@ -26,6 +26,9 @@ they are rounded down (see, e.g., Documentation/diff-generate-patch.txt, which
 mentions this in a different context).
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 get_expected_stages () {
t/t6436-merge-overwrite.sh +3 -0
index dd9376842f..7d5691c1b4 100755
@@ -4,6 +4,9 @@ test_description='git-merge
 
 Do not overwrite changes.'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t6437-submodule-merge.sh +3 -0
index 3ead2b726f..14fa46edf3 100755
@@ -2,6 +2,9 @@
 
 test_description='merging with submodules'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 #
t/t6439-merge-co-error-msgs.sh +3 -0
index 5c8894d94f..e5542ceb24 100755
@@ -2,6 +2,9 @@
 
 test_description='unpack-trees error messages'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 
t/t6501-freshen-objects.sh +3 -0
index 8a3bb4105b..bda5069044 100755
@@ -25,6 +25,9 @@
 #      to refer to an existing tree).
 
 test_description='check pruning of dependent objects'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # We care about reachability, so we do not want to use
t/t7003-filter-branch.sh +3 -0
index 36477cb1f4..db496fa039 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='git filter-branch'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY/lib-gpg.sh"
 
t/t7004-tag.sh +3 -0
index 05f411c821..0e3086c4a6 100755
@@ -7,6 +7,9 @@ test_description='git tag
 
 Tests for operations with tags.'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-gpg.sh
 . "$TEST_DIRECTORY"/lib-terminal.sh
t/t7030-verify-tag.sh +3 -0
index 5c5bc32ccb..bcb3c4f035 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='signed tag tests'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY/lib-gpg.sh"
 
t/t7060-wtstatus.sh +3 -0
index d5218743e9..e65ca019eb 100755
@@ -2,6 +2,9 @@
 
 test_description='basic work tree status reporting'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t7063-status-untracked-cache.sh +3 -0
index a682a3d826..ae60942347 100755
@@ -2,6 +2,9 @@
 
 test_description='test untracked cache'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # On some filesystems (e.g. FreeBSD's ext2 and ufs) directory mtime
t/t7064-wtstatus-pv2.sh +3 -0
index 537787e598..07954b2142 100755
@@ -5,6 +5,9 @@ test_description='git status --porcelain=v2
 This test exercises porcelain V2 output for git status.'
 
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 
t/t7102-reset.sh +3 -0
index b1affb001f..4af43d26f1 100755
@@ -7,6 +7,9 @@ test_description='git reset
 
 Documented tests for git reset'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 commit_msg () {
t/t7113-post-index-change-hook.sh +3 -0
index f011ad7eec..8872c32f94 100755
@@ -2,6 +2,9 @@
 
 test_description='post index change hook'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t7201-co.sh +3 -0
index b36a93056f..12567543c4 100755
@@ -20,6 +20,9 @@ Test switching across them.
 
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_tick
t/t7400-submodule-basic.sh +3 -0
index fec7e0299d..8addc0c8c9 100755
@@ -9,6 +9,9 @@ This test tries to verify basic sanity of the init, update and status
 subcommands of git submodule.
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'submodule deinit works on empty repository' '
t/t7403-submodule-sync.sh +3 -0
index 0726799e74..c95559bed5 100755
@@ -8,6 +8,9 @@ test_description='git submodule sync
 These tests exercise the "git submodule sync" subcommand.
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
t/t7406-submodule-update.sh +3 -0
index acb8766ac2..825b1a7e0c 100755
@@ -9,6 +9,9 @@ This test verifies that "git submodule update" detaches the HEAD of the
 submodule and "git submodule update --rebase/--merge" does not detach the HEAD.
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 
t/t7407-submodule-foreach.sh +3 -0
index 6b2aa917e1..632defc53b 100755
@@ -9,6 +9,9 @@ This test verifies that "git submodule foreach" correctly visits all submodules
 that are currently checked out.
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 
t/t7409-submodule-detached-work-tree.sh +3 -0
index fc018e3638..e9428e2b59 100755
@@ -10,6 +10,9 @@ on detached working trees
 '
 
 TEST_NO_CREATE_REPO=1
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'submodule on detached working tree' '
t/t7417-submodule-path-url.sh +3 -0
index f7e7e94d7b..0a514e951c 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='check handling of .gitmodule path with dash'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'create submodule with dash in path' '
t/t7501-commit-basic-functionality.sh +3 -0
index 110b4bf459..9a1414f31d 100755
@@ -7,6 +7,9 @@
 # signoff
 
 test_description='git commit'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY/diff-lib.sh"
 
t/t7502-commit-porcelain.sh +3 -0
index 14c92e4c25..c8c16bf1c9 100755
@@ -2,6 +2,9 @@
 
 test_description='git commit porcelain-ish'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 commit_msg_is () {
t/t7503-pre-commit-and-pre-merge-commit-hooks.sh +3 -0
index b3485450a2..8d3f4ab0d7 100755
@@ -2,6 +2,9 @@
 
 test_description='pre-commit and pre-merge-commit hooks'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 HOOKDIR="$(git rev-parse --git-dir)/hooks"
t/t7504-commit-msg-hook.sh +3 -0
index 31b9c6a2c1..17fb1d8499 100755
@@ -2,6 +2,9 @@
 
 test_description='commit-msg hook'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'with no hook' '
t/t7505-prepare-commit-msg-hook.sh +3 -0
index 94f85cdf83..978c90abbb 100755
@@ -2,6 +2,9 @@
 
 test_description='prepare-commit-msg hook'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'set up commits for rebasing' '
t/t7510-signed-commit.sh +3 -0
index 6baaa1ad91..a5a36cab85 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='signed commit tests'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 GNUPGHOME_NOT_USED=$GNUPGHOME
 . "$TEST_DIRECTORY/lib-gpg.sh"
t/t7512-status-help.sh +3 -0
index 29518e0949..fbd760f7e6 100755
@@ -7,6 +7,9 @@
 
 test_description='git status advice'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 . "$TEST_DIRECTORY"/lib-rebase.sh
t/t7517-per-repo-email.sh +3 -0
index b2401cec3e..344d72a5c0 100755
@@ -6,6 +6,9 @@
 
 test_description='per-repo forced setting of email address'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup a likely user.useConfigOnly use case' '
t/t7600-merge.sh +3 -0
index 1c85f75555..0ad866c08c 100755
@@ -26,6 +26,9 @@ Testing basic merge operations/option parsing.
 +++++++* [c0] commit 0
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-gpg.sh
 
t/t7608-merge-messages.sh +3 -0
index 8e7e0a5865..7059c2a54b 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test auto-generated merge messages'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 check_oneline() {
t/t7610-mergetool.sh +3 -0
index 70afdd06fa..e65645d5e9 100755
@@ -7,6 +7,9 @@ test_description='git mergetool
 
 Testing basic merge tool invocation'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # All the mergetool test work by checking out a temporary branch based
t/t7611-merge-abort.sh +3 -0
index 7c84a518aa..ed072bfb19 100755
@@ -22,6 +22,9 @@ Next, test git merge --abort with the following variables:
 - changed/unchanged worktree after merge
 - changed/unchanged index after merge
 '
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t7612-merge-verify-signatures.sh +3 -0
index a426f3a89a..b4ec88f996 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='merge signature verification tests'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY/lib-gpg.sh"
 
t/t7614-merge-signoff.sh +3 -0
index c1b8446f49..ea4eeee35f 100755
@@ -5,6 +5,9 @@ test_description='git merge --signoff
 This test runs git merge --signoff and makes sure that it works.
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # Setup test files
t/t7701-repack-unpack-unreachable.sh +3 -0
index 48261ba080..375f43a721 100755
@@ -2,6 +2,9 @@
 
 test_description='git repack works correctly'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 fsha1=
t/t7800-difftool.sh +3 -0
index a578b35761..f938efa296 100755
@@ -8,6 +8,9 @@ test_description='git-difftool
 Testing basic diff tool invocation
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 difftool_test_setup ()
t/t7810-grep.sh +3 -0
index 991d5bd9c0..47ec993962 100755
@@ -6,6 +6,9 @@
 test_description='git grep various.
 '
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 cat >hello.c <<EOF
t/t8001-annotate.sh +3 -0
index 72176e42c1..f661007c85 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='git annotate'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 PROG='git annotate'
t/t8002-blame.sh +3 -0
index 015973e8fe..89a319d2c7 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='git blame'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 PROG='git blame -c'
t/t8003-blame-corner-cases.sh +3 -0
index ba8013b002..0613d889db 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='git blame corner cases'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 pick_fc='s/^[0-9a-f^]* *\([^ ]*\) *(\([^ ]*\) .*/\1-\2/'
t/t8004-blame-with-conflicts.sh +3 -0
index 9c353ab222..ffce1d1195 100755
@@ -3,6 +3,9 @@
 # Based on a test case submitted by Björn Steinbrink.
 
 test_description='git blame on conflicted files'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup first case' '
t/t8012-blame-colors.sh +3 -0
index ed38f74de9..d55b3e22c9 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='colored git blame'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 PROG='git blame -c'
t/t9001-send-email.sh +3 -0
index a08f72596a..3d160d939e 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='git send-email'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 # May be altered later in the test
t/t9100-git-svn-basic.sh +3 -0
index e4bb22034e..9a6f2c38f1 100755
@@ -6,6 +6,9 @@
 test_description='git svn basic tests'
 GIT_SVN_LC_ALL=${LC_ALL:-$LANG}
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-git-svn.sh
 
 case "$GIT_SVN_LC_ALL" in
t/t9145-git-svn-master-branch.sh +3 -0
index 3bbf341f6a..053571ca5c 100755
@@ -3,6 +3,9 @@
 # Copyright (c) 2009 Eric Wong
 #
 test_description='git svn initial master branch is "trunk" if possible'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-git-svn.sh
 
 test_expect_success 'setup test repository' '
t/t9151-svn-mergeinfo.sh +3 -0
index 4f6c06ecb2..9188c761de 100755
@@ -5,6 +5,9 @@
 
 test_description='git-svn svn mergeinfo properties'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-git-svn.sh
 
 test_expect_success 'load svn dump' "
t/t9155-git-svn-fetch-deleted-tag.sh +3 -0
index 184336f346..9d6cc40add 100755
@@ -2,6 +2,9 @@
 
 test_description='git svn fetch deleted tag'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-git-svn.sh
 
 test_expect_success 'setup svn repo' '
t/t9156-git-svn-fetch-deleted-tag-2.sh +3 -0
index 7a6e33ba3c..ba78bfb676 100755
@@ -2,6 +2,9 @@
 
 test_description='git svn fetch deleted tag 2'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-git-svn.sh
 
 test_expect_success 'setup svn repo' '
t/t9163-git-svn-reset-clears-caches.sh +3 -0
index d6245cee08..e48faf92af 100755
@@ -4,6 +4,9 @@
 #
 
 test_description='git svn reset clears memoized caches'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-git-svn.sh
 
 svn_ver="$(svn --version --quiet)"
t/t9169-git-svn-dcommit-crlf.sh +3 -0
index 54b1f61a2a..47ae51c54f 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='git svn dcommit CRLF'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-git-svn.sh
 
 test_expect_success 'setup commit repository' '
t/t9300-fast-import.sh +3 -0
index 308c1ef42c..404a42999e 100755
@@ -4,6 +4,9 @@
 #
 
 test_description='test git fast-import utility'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/diff-lib.sh ;# test-lib chdir's into trash
 
t/t9301-fast-import-notes.sh +3 -0
index 14c1baa739..0c5bfbde0e 100755
@@ -4,6 +4,9 @@
 #
 
 test_description='test git fast-import of notes objects'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 
t/t9350-fast-export.sh +3 -0
index 1372842559..6c8830ece5 100755
@@ -4,6 +4,9 @@
 #
 
 test_description='git fast-export'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup' '
t/t9351-fast-export-anonymize.sh +3 -0
index 5ac2c3b5ee..4130c8a837 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='basic tests for fast-export --anonymize'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'setup simple repo' '
t/t9400-git-cvsserver-server.sh +3 -0
index 4a46f31c41..7d23e6ba94 100755
@@ -8,6 +8,9 @@ test_description='git-cvsserver access
 tests read access to a git repository with the
 cvs CLI client via git-cvsserver server'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 if ! test_have_prereq PERL; then
t/t9401-git-cvsserver-crlf.sh +3 -0
index c7a0dd84a4..0062341dbf 100755
@@ -9,6 +9,9 @@ test_description='git-cvsserver -kb modes
 tests -kb mode for binary files when accessing a git
 repository using cvs CLI client via git-cvsserver server'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 marked_as () {
t/t9402-git-cvsserver-refs.sh +3 -0
index 6436c91a3c..33b6db1648 100755
@@ -5,6 +5,9 @@ test_description='git-cvsserver and git refspecs
 tests ability for git-cvsserver to switch between and compare
 tags, branches and other git refspecs'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 #########
t/t9500-gitweb-standalone-no-errors.sh +3 -0
index b484e3e250..fa36bf5e83 100755
@@ -10,6 +10,9 @@ commandline, and checks that it would not write any errors
 or warnings to log.'
 
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./gitweb-lib.sh
 
 # ----------------------------------------------------------------------
t/t9501-gitweb-standalone-http-status.sh +3 -0
index 2a0ffed870..6b0adf28d2 100755
@@ -10,6 +10,9 @@ commandline, and checks that it returns the expected HTTP status
 code and message.'
 
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./gitweb-lib.sh
 
 #
t/t9502-gitweb-standalone-parse-output.sh +3 -0
index e38cbc97d3..76d90eccd8 100755
@@ -10,6 +10,9 @@ commandline, and checks that it produces the correct output, either
 in the HTTP header or the actual script output.'
 
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./gitweb-lib.sh
 
 # ----------------------------------------------------------------------
t/t9600-cvsimport.sh +3 -0
index 251fdd66c4..9257d664f2 100755
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='git cvsimport basic tests'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-cvs.sh
 
 if ! test_have_prereq NOT_ROOT; then
t/t9601-cvsimport-vendor-branch.sh +3 -0
index 827d39f5bf..700c2688d2 100755
@@ -32,6 +32,9 @@
 #       tag has been removed.
 
 test_description='git cvsimport handling of vendor branches'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-cvs.sh
 
 setup_cvs_test_repository t9601
t/t9602-cvsimport-branches-tags.sh +3 -0
index e1db323f54..7b1fb36e67 100755
@@ -4,6 +4,9 @@
 # t9602/README.
 
 test_description='git cvsimport handling of branches and tags'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-cvs.sh
 
 setup_cvs_test_repository t9602
t/t9603-cvsimport-patchsets.sh +3 -0
index e7a91611dc..87cd8c0c6b 100755
@@ -12,6 +12,9 @@
 # bug.
 
 test_description='git cvsimport testing for correct patchset estimation'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-cvs.sh
 
 setup_cvs_test_repository t9603
t/t9800-git-p4-basic.sh +3 -0
index c98c1dfc23..c920b84778 100755
@@ -2,6 +2,9 @@
 
 test_description='git p4 tests'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-git-p4.sh
 
 test_expect_success 'start p4d' '
t/t9801-git-p4-branch.sh +3 -0
index a3abd778f9..ebfe9d8195 100755
@@ -2,6 +2,9 @@
 
 test_description='git p4 tests for p4 branches'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-git-p4.sh
 
 test_expect_success 'start p4d' '
t/t9806-git-p4-options.sh +3 -0
index 4e794a01bf..c7629b6c7d 100755
@@ -2,6 +2,9 @@
 
 test_description='git p4 options'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-git-p4.sh
 
 test_expect_success 'start p4d' '
t/t9807-git-p4-submit.sh +3 -0
index eaaae414a1..f12e6f7206 100755
@@ -2,6 +2,9 @@
 
 test_description='git p4 submit'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-git-p4.sh
 
 test_expect_success 'start p4d' '
t/t9811-git-p4-label-import.sh +3 -0
index c1446f26ab..c53952ac14 100755
@@ -2,6 +2,9 @@
 
 test_description='git p4 label tests'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-git-p4.sh
 
 test_expect_success 'start p4d' '
t/t9902-completion.sh +3 -0
index 5c01c75d40..ac436df3b4 100755
@@ -5,6 +5,9 @@
 
 test_description='test bash completion'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-bash.sh
 
 complete ()
t/t9903-bash-prompt.sh +3 -0
index ab5da2cabc..f5b5935c2c 100755
@@ -5,6 +5,9 @@
 
 test_description='test git-specific bash prompt functions'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./lib-bash.sh
 
 . "$GIT_BUILD_DIR/contrib/completion/git-prompt.sh"
Signature · 1 line
gitgitgadget
#95 lore raw

PATCH v3 2/28 t0060: preemptively adjust alignment

In reply to Johannes Schindelin via GitGitGadget

From: Johannes Schindelin <[email protected]>

We are about to adjust t0060 for the new default branch name main. This name is two characters shorter and therefore needs two spaces more padding to align correctly.

Adjusting the alignment before the big search-and-replace makes it easier to verify that the final result does not leave any misaligned lines behind.

---
 t/t0060-path-utils.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
t/t0060-path-utils.sh +2 -2
index b2e3cf3f4c..928eebbdc0 100755
@@ -312,8 +312,8 @@ test_git_path GIT_COMMON_DIR=bar info/sparse-checkout     .git/info/sparse-check
 test_git_path GIT_COMMON_DIR=bar info//sparse-checkout    .git/info//sparse-checkout
 test_git_path GIT_COMMON_DIR=bar remotes/bar              bar/remotes/bar
 test_git_path GIT_COMMON_DIR=bar branches/bar             bar/branches/bar
-test_git_path GIT_COMMON_DIR=bar logs/refs/heads/master   bar/logs/refs/heads/master
-test_git_path GIT_COMMON_DIR=bar refs/heads/master        bar/refs/heads/master
+test_git_path GIT_COMMON_DIR=bar logs/refs/heads/master     bar/logs/refs/heads/master
+test_git_path GIT_COMMON_DIR=bar refs/heads/master          bar/refs/heads/master
 test_git_path GIT_COMMON_DIR=bar refs/bisect/foo          .git/refs/bisect/foo
 test_git_path GIT_COMMON_DIR=bar hooks/me                 bar/hooks/me
 test_git_path GIT_COMMON_DIR=bar config                   bar/config
Signature · 1 line
gitgitgadget
#99 lore raw

PATCH v3 6/28 t3416: preemptively adjust alignment in a comment

In reply to Johannes Schindelin via GitGitGadget

From: Johannes Schindelin <[email protected]>

We are about to adjust t3416 for the new default branch name main. This name is two characters shorter and therefore needs two spaces more padding to align correctly.

Adjusting the alignment before the big search-and-replace makes it easier to verify that the final result does not leave any misaligned lines behind.

---
 t/t3416-rebase-onto-threedots.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
t/t3416-rebase-onto-threedots.sh +1 -1
index 0f5b814aaf..d0476fbb28 100755
@@ -15,7 +15,7 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 #
 #	    F---G topic                             G'
 #	   /                                       /
-# A---B---C---D---E master      -->       A---B---C---D---E
+# A---B---C---D---E master        -->       A---B---C---D---E
 #      \   \ /
 #	\   x
 #	 \ / \
Signature · 1 line
gitgitgadget
#97 lore raw

PATCH v3 4/28 t2*: adjust the references to the default branch name "main"

In reply to Johannes Schindelin via GitGitGadget

From: Johannes Schindelin <[email protected]>

Carefully excluding t2106, which sees independent development elsewhere at the time of writing, we transition above-mentioned tests to the default branch name main. This trick was performed via

	$ (cd t &&
	   sed -i -e 's/master/main/g' -e 's/MASTER/MAIN/g' \
		-e 's/Master/Main/g' -- t2*.sh &&
	   git checkout HEAD -- t2106\*)

This allows us to define GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main for those tests.

---
 t/t2007-checkout-symlink.sh      | 12 +++---
 t/t2009-checkout-statinfo.sh     | 10 ++---
 t/t2010-checkout-ambiguous.sh    |  6 +--
 t/t2011-checkout-invalid-head.sh | 18 ++++----
 t/t2012-checkout-last.sh         | 50 +++++++++++------------
 t/t2015-checkout-unborn.sh       |  4 +-
 t/t2017-checkout-orphan.sh       | 46 ++++++++++-----------
 t/t2020-checkout-detach.sh       | 30 +++++++-------
 t/t2022-checkout-paths.sh        | 24 +++++------
 t/t2023-checkout-m.sh            | 12 +++---
 t/t2024-checkout-dwim.sh         | 70 ++++++++++++++++----------------
 t/t2027-checkout-track.sh        |  8 ++--
 t/t2030-unresolve-info.sh        |  8 ++--
 t/t2060-switch.sh                | 32 +++++++--------
 t/t2070-restore.sh               |  6 +--
 t/t2400-worktree-add.sh          | 68 +++++++++++++++----------------
 t/t2401-worktree-prune.sh        |  4 +-
 t/t2402-worktree-list.sh         | 22 +++++-----
 t/t2405-worktree-submodule.sh    |  8 ++--
 19 files changed, 219 insertions(+), 219 deletions(-)
t/t2007-checkout-symlink.sh +6 -6
index 8879a78b85..6f0b90ce12 100755
@@ -4,7 +4,7 @@
 
 test_description='git checkout to switch between branches with symlink<->dir'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -15,14 +15,14 @@ test_expect_success setup '
 	echo hello >frotz/filfre &&
 	git add frotz/filfre &&
 	test_tick &&
-	git commit -m "master has file frotz/filfre" &&
+	git commit -m "main has file frotz/filfre" &&
 
 	git branch side &&
 
 	echo goodbye >nitfol &&
 	git add nitfol &&
 	test_tick &&
-	git commit -m "master adds file nitfol" &&
+	git commit -m "main adds file nitfol" &&
 
 	git checkout side &&
 
@@ -37,13 +37,13 @@ test_expect_success setup '
 
 test_expect_success 'switch from symlink to dir' '
 
-	git checkout master
+	git checkout main
 
 '
 
-test_expect_success 'Remove temporary directories & switch to master' '
+test_expect_success 'Remove temporary directories & switch to main' '
 	rm -fr frotz xyzzy nitfol &&
-	git checkout -f master
+	git checkout -f main
 '
 
 test_expect_success 'switch from dir to symlink' '
t/t2009-checkout-statinfo.sh +5 -5
index 9af4d6ca5e..b0540636ae 100755
@@ -2,7 +2,7 @@
 
 test_description='checkout should leave clean stat info'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -24,13 +24,13 @@ test_expect_success 'branch switching' '
 	git reset --hard &&
 	test "$(git diff-files --raw)" = "" &&
 
-	git checkout master &&
+	git checkout main &&
 	test "$(git diff-files --raw)" = "" &&
 
 	git checkout side &&
 	test "$(git diff-files --raw)" = "" &&
 
-	git checkout master &&
+	git checkout main &&
 	test "$(git diff-files --raw)" = ""
 
 '
@@ -40,13 +40,13 @@ test_expect_success 'path checkout' '
 	git reset --hard &&
 	test "$(git diff-files --raw)" = "" &&
 
-	git checkout master world &&
+	git checkout main world &&
 	test "$(git diff-files --raw)" = "" &&
 
 	git checkout side world &&
 	test "$(git diff-files --raw)" = "" &&
 
-	git checkout master world &&
+	git checkout main world &&
 	test "$(git diff-files --raw)" = ""
 
 '
t/t2010-checkout-ambiguous.sh +3 -3
index 3f5431e033..6e8757387d 100755
@@ -2,7 +2,7 @@
 
 test_description='checkout and pathspecs/refspecs ambiguities'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -20,7 +20,7 @@ test_expect_success 'reference must be a tree' '
 '
 
 test_expect_success 'branch switching' '
-	test "refs/heads/master" = "$(git symbolic-ref HEAD)" &&
+	test "refs/heads/main" = "$(git symbolic-ref HEAD)" &&
 	git checkout world -- &&
 	test "refs/heads/world" = "$(git symbolic-ref HEAD)"
 '
@@ -60,7 +60,7 @@ test_expect_success 'disambiguate checking out from a tree-ish' '
 '
 
 test_expect_success 'accurate error message with more than one ref' '
-	test_must_fail git checkout HEAD master -- 2>actual &&
+	test_must_fail git checkout HEAD main -- 2>actual &&
 	test_i18ngrep 2 actual &&
 	test_i18ngrep "one reference expected, 2 given" actual
 '
t/t2011-checkout-invalid-head.sh +9 -9
index fede33ff1f..e52022e152 100755
@@ -2,7 +2,7 @@
 
 test_description='checkout switching away from an invalid branch'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -14,12 +14,12 @@ test_expect_success 'setup' '
 '
 
 test_expect_success 'checkout should not start branch from a tree' '
-	test_must_fail git checkout -b newbranch master^{tree}
+	test_must_fail git checkout -b newbranch main^{tree}
 '
 
-test_expect_success 'checkout master from invalid HEAD' '
+test_expect_success 'checkout main from invalid HEAD' '
 	echo $ZERO_OID >.git/HEAD &&
-	git checkout master --
+	git checkout main --
 '
 
 test_expect_success 'checkout notices failure to lock HEAD' '
@@ -29,7 +29,7 @@ test_expect_success 'checkout notices failure to lock HEAD' '
 '
 
 test_expect_success 'create ref directory/file conflict scenario' '
-	git update-ref refs/heads/outer/inner master &&
+	git update-ref refs/heads/outer/inner main &&
 
 	# do not rely on symbolic-ref to get a known state,
 	# as it may use the same code we are testing
@@ -40,12 +40,12 @@ test_expect_success 'create ref directory/file conflict scenario' '
 
 test_expect_success 'checkout away from d/f HEAD (unpacked, to branch)' '
 	reset_to_df &&
-	git checkout master
+	git checkout main
 '
 
 test_expect_success 'checkout away from d/f HEAD (unpacked, to detached)' '
 	reset_to_df &&
-	git checkout --detach master
+	git checkout --detach main
 '
 
 test_expect_success 'pack refs' '
@@ -54,11 +54,11 @@ test_expect_success 'pack refs' '
 
 test_expect_success 'checkout away from d/f HEAD (packed, to branch)' '
 	reset_to_df &&
-	git checkout master
+	git checkout main
 '
 
 test_expect_success 'checkout away from d/f HEAD (packed, to detached)' '
 	reset_to_df &&
-	git checkout --detach master
+	git checkout --detach main
 '
 test_done
t/t2012-checkout-last.sh +25 -25

95 lines not on this page · raw message

t/t2015-checkout-unborn.sh +2 -2
index 669a70c76f..a9721215fa 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='checkout from unborn branch'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -14,7 +14,7 @@ test_expect_success 'setup' '
 	 git add file &&
 	 git commit -m base
 	) &&
-	git fetch parent master:origin
+	git fetch parent main:origin
 '
 
 test_expect_success 'checkout from unborn preserves untracked files' '
t/t2017-checkout-orphan.sh +23 -23

118 lines not on this page · raw message

t/t2020-checkout-detach.sh +15 -15
index 45d87c23b1..b432b6427b 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='checkout into detached HEAD state'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -25,7 +25,7 @@ check_no_orphan_warning() {
 }
 
 reset () {
-	git checkout master &&
+	git checkout main &&
 	check_not_detached
 }
 
@@ -88,7 +88,7 @@ test_expect_success 'checkout --detach errors out for non-commit' '
 
 test_expect_success 'checkout --detach errors out for extra argument' '
 	reset &&
-	git checkout master &&
+	git checkout main &&
 	test_must_fail git checkout --detach tag one.t &&
 	check_not_detached
 '
@@ -116,7 +116,7 @@ test_expect_success 'checkout warns on orphan commits' '
 	echo new content >orphan &&
 	git commit -a -m orphan2 &&
 	orphan2=$(git rev-parse HEAD) &&
-	git checkout master 2>stderr
+	git checkout main 2>stderr
 '
 
 test_expect_success 'checkout warns on orphan commits: output' '
@@ -135,7 +135,7 @@ test_expect_success 'checkout warns orphaning 1 of 2 commits: output' '
 test_expect_success 'checkout does not warn leaving ref tip' '
 	reset &&
 	git checkout --detach two &&
-	git checkout master 2>stderr
+	git checkout main 2>stderr
 '
 
 test_expect_success 'checkout does not warn leaving ref tip' '
@@ -145,7 +145,7 @@ test_expect_success 'checkout does not warn leaving ref tip' '
 test_expect_success 'checkout does not warn leaving reachable commit' '
 	reset &&
 	git checkout --detach HEAD^ &&
-	git checkout master 2>stderr
+	git checkout main 2>stderr
 '
 
 test_expect_success 'checkout does not warn leaving reachable commit' '
@@ -153,14 +153,14 @@ test_expect_success 'checkout does not warn leaving reachable commit' '
 '
 
 cat >expect <<'EOF'
-Your branch is behind 'master' by 1 commit, and can be fast-forwarded.
+Your branch is behind 'main' by 1 commit, and can be fast-forwarded.
   (use "git pull" to update your local branch)
 EOF
 test_expect_success 'tracking count is accurate after orphan check' '
 	reset &&
-	git branch child master^ &&
+	git branch child main^ &&
 	git config branch.child.remote . &&
-	git config branch.child.merge refs/heads/master &&
+	git config branch.child.merge refs/heads/main &&
 	git checkout child^ &&
 	git checkout child >stdout &&
 	test_i18ncmp expect stdout
@@ -192,9 +192,9 @@ test_expect_success 'no advice given for explicit detached head state' '
 # Detached HEAD tests for GIT_PRINT_SHA1_ELLIPSIS (new format)
 test_expect_success 'describe_detached_head prints no SHA-1 ellipsis when not asked to' "
 
-	commit=$(git rev-parse --short=12 master^) &&
-	commit2=$(git rev-parse --short=12 master~2) &&
-	commit3=$(git rev-parse --short=12 master~3) &&
+	commit=$(git rev-parse --short=12 main^) &&
+	commit2=$(git rev-parse --short=12 main~2) &&
+	commit3=$(git rev-parse --short=12 main~3) &&
 
 	# The first detach operation is more chatty than the following ones.
 	cat >1st_detach <<-EOF &&
@@ -274,9 +274,9 @@ test_expect_success 'describe_detached_head prints no SHA-1 ellipsis when not as
 # Detached HEAD tests for GIT_PRINT_SHA1_ELLIPSIS (old format)
 test_expect_success 'describe_detached_head does print SHA-1 ellipsis when asked to' "
 
-	commit=$(git rev-parse --short=12 master^) &&
-	commit2=$(git rev-parse --short=12 master~2) &&
-	commit3=$(git rev-parse --short=12 master~3) &&
+	commit=$(git rev-parse --short=12 main^) &&
+	commit2=$(git rev-parse --short=12 main~2) &&
+	commit3=$(git rev-parse --short=12 main~3) &&
 
 	# The first detach operation is more chatty than the following ones.
 	cat >1st_detach <<-EOF &&
t/t2022-checkout-paths.sh +12 -12
index fc0f5b775c..c49ba7f9bd 100755
@@ -1,22 +1,22 @@
 #!/bin/sh
 
 test_description='checkout $tree -- $paths'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
 
 test_expect_success setup '
 	mkdir dir &&
-	>dir/master &&
+	>dir/main &&
 	echo common >dir/common &&
-	git add dir/master dir/common &&
-	test_tick && git commit -m "master has dir/master" &&
+	git add dir/main dir/common &&
+	test_tick && git commit -m "main has dir/main" &&
 	git checkout -b next &&
-	git mv dir/master dir/next0 &&
+	git mv dir/main dir/next0 &&
 	echo next >dir/next1 &&
 	git add dir &&
-	test_tick && git commit -m "next has dir/next but not dir/master"
+	test_tick && git commit -m "next has dir/next but not dir/main"
 '
 
 test_expect_success 'checking out paths out of a tree does not clobber unrelated paths' '
@@ -29,11 +29,11 @@ test_expect_success 'checking out paths out of a tree does not clobber unrelated
 	echo untracked >expect.next2 &&
 	cat expect.next2 >dir/next2 &&
 
-	git checkout master dir &&
+	git checkout main dir &&
 
 	test_cmp expect.common dir/common &&
-	test_path_is_file dir/master &&
-	git diff --exit-code master dir/master &&
+	test_path_is_file dir/main &&
+	git diff --exit-code main dir/main &&
 
 	test_path_is_missing dir/next0 &&
 	test_cmp expect.next1 dir/next1 &&
@@ -55,11 +55,11 @@ test_expect_success 'do not touch unmerged entries matching $path but not in $tr
 	EOF
 	git update-index --index-info <expect.next0 &&
 
-	git checkout master dir &&
+	git checkout main dir &&
 
 	test_cmp expect.common dir/common &&
-	test_path_is_file dir/master &&
-	git diff --exit-code master dir/master &&
+	test_path_is_file dir/main &&
+	git diff --exit-code main dir/main &&
 	git ls-files -s dir/next0 >actual.next0 &&
 	test_cmp expect.next0 actual.next0
 '
t/t2023-checkout-m.sh +6 -6
index f2f4f5b3ac..7b327b7544 100755
@@ -4,7 +4,7 @@ test_description='checkout -m -- <conflicted path>
 
 Ensures that checkout -m on a resolved file restores the conflicted file'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -13,15 +13,15 @@ test_expect_success setup '
 	test_tick &&
 	test_commit both.txt both.txt initial &&
 	git branch topic &&
-	test_commit modified_in_master both.txt in_master &&
-	test_commit added_in_master each.txt in_master &&
+	test_commit modified_in_main both.txt in_main &&
+	test_commit added_in_main each.txt in_main &&
 	git checkout topic &&
 	test_commit modified_in_topic both.txt in_topic &&
 	test_commit added_in_topic each.txt in_topic
 '
 
-test_expect_success 'git merge master' '
-    test_must_fail git merge master
+test_expect_success 'git merge main' '
+    test_must_fail git merge main
 '
 
 clean_branchnames () {
@@ -64,7 +64,7 @@ test_expect_success 'force checkout a conflict file creates stage zero entry' '
 		git checkout topic &&
 		echo c >a &&
 		C_OBJ=$(git hash-object a) &&
-		git checkout -m master &&
+		git checkout -m main &&
 		test_cmp_rev :1:a $A_OBJ &&
 		test_cmp_rev :2:a $B_OBJ &&
 		test_cmp_rev :3:a $C_OBJ &&
t/t2024-checkout-dwim.sh +35 -35

238 lines not on this page · raw message

t/t2027-checkout-track.sh +4 -4
index 4e1419ca98..4453741b96 100755
@@ -2,7 +2,7 @@
 
 test_description='tests for git branch --track'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -13,14 +13,14 @@ test_expect_success 'setup' '
 '
 
 test_expect_success 'checkout --track -b creates a new tracking branch' '
-	git checkout --track -b branch1 master &&
+	git checkout --track -b branch1 main &&
 	test $(git rev-parse --abbrev-ref HEAD) = branch1 &&
 	test $(git config --get branch.branch1.remote) = . &&
-	test $(git config --get branch.branch1.merge) = refs/heads/master
+	test $(git config --get branch.branch1.merge) = refs/heads/main
 '
 
 test_expect_success 'checkout --track -b rejects an extra path argument' '
-	test_must_fail git checkout --track -b branch2 master one.t 2>err &&
+	test_must_fail git checkout --track -b branch2 main one.t 2>err &&
 	test_i18ngrep "cannot be used with updating paths" err
 '
 
t/t2030-unresolve-info.sh +4 -4
index 3fe29fc3ee..be6c84c52a 100755
@@ -2,7 +2,7 @@
 
 test_description='undoing resolution'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -62,7 +62,7 @@ test_expect_success setup '
 	test_commit fourth fi/le fourth &&
 	git checkout add-add &&
 	test_commit fifth add-differently &&
-	git checkout master
+	git checkout main
 '
 
 test_expect_success 'add records switch clears' '
@@ -186,8 +186,8 @@ test_expect_success 'rerere forget (binary)' '
 '
 
 test_expect_success 'rerere forget (add-add conflict)' '
-	git checkout -f master &&
-	echo master >add-differently &&
+	git checkout -f main &&
+	echo main >add-differently &&
 	git add add-differently &&
 	git commit -m "add differently" &&
 	test_must_fail git merge fifth &&
t/t2060-switch.sh +16 -16
index 4de9299705..9bc6a3aa5c 100755
@@ -2,7 +2,7 @@
 
 test_description='switch basic functionality'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -26,41 +26,41 @@ test_expect_success 'switch branch' '
 '
 
 test_expect_success 'switch and detach' '
-	test_when_finished git switch master &&
-	test_must_fail git switch master^{commit} &&
-	git switch --detach master^{commit} &&
+	test_when_finished git switch main &&
+	test_must_fail git switch main^{commit} &&
+	git switch --detach main^{commit} &&
 	test_must_fail git symbolic-ref HEAD
 '
 
 test_expect_success 'switch and detach current branch' '
-	test_when_finished git switch master &&
-	git switch master &&
+	test_when_finished git switch main &&
+	git switch main &&
 	git switch --detach &&
 	test_must_fail git symbolic-ref HEAD
 '
 
 test_expect_success 'switch and create branch' '
-	test_when_finished git switch master &&
-	git switch -c temp master^ &&
-	test_cmp_rev master^ refs/heads/temp &&
+	test_when_finished git switch main &&
+	git switch -c temp main^ &&
+	test_cmp_rev main^ refs/heads/temp &&
 	echo refs/heads/temp >expected-branch &&
 	git symbolic-ref HEAD >actual-branch &&
 	test_cmp expected-branch actual-branch
 '
 
 test_expect_success 'force create branch from HEAD' '
-	test_when_finished git switch master &&
-	git switch --detach master &&
+	test_when_finished git switch main &&
+	git switch --detach main &&
 	test_must_fail git switch -c temp &&
 	git switch -C temp &&
-	test_cmp_rev master refs/heads/temp &&
+	test_cmp_rev main refs/heads/temp &&
 	echo refs/heads/temp >expected-branch &&
 	git symbolic-ref HEAD >actual-branch &&
 	test_cmp expected-branch actual-branch
 '
 
 test_expect_success 'new orphan branch from empty' '
-	test_when_finished git switch master &&
+	test_when_finished git switch main &&
 	test_must_fail git switch --orphan new-orphan HEAD &&
 	git switch --orphan new-orphan &&
 	test_commit orphan &&
@@ -72,7 +72,7 @@ test_expect_success 'new orphan branch from empty' '
 '
 
 test_expect_success 'orphan branch works with --discard-changes' '
-	test_when_finished git switch master &&
+	test_when_finished git switch main &&
 	echo foo >foo.txt &&
 	git switch --discard-changes --orphan new-orphan2 &&
 	git ls-files >tracked-files &&
@@ -80,7 +80,7 @@ test_expect_success 'orphan branch works with --discard-changes' '
 '
 
 test_expect_success 'switching ignores file of same branch name' '
-	test_when_finished git switch master &&
+	test_when_finished git switch main &&
 	: >first-branch &&
 	git switch first-branch &&
 	echo refs/heads/first-branch >expected &&
@@ -89,7 +89,7 @@ test_expect_success 'switching ignores file of same branch name' '
 '
 
 test_expect_success 'guess and create branch' '
-	test_when_finished git switch master &&
+	test_when_finished git switch main &&
 	test_must_fail git switch --no-guess foo &&
 	test_config checkout.guess false &&
 	test_must_fail git switch foo &&
t/t2070-restore.sh +3 -3
index 6941769c9a..7c43ddf1d9 100755
@@ -2,7 +2,7 @@
 
 test_description='restore basic functionality'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -18,7 +18,7 @@ test_expect_success 'setup' '
 	echo ignored >ignored &&
 	echo /ignored >.gitignore &&
 	git add one two .gitignore &&
-	git update-ref refs/heads/one master
+	git update-ref refs/heads/one main
 '
 
 test_expect_success 'restore without pathspec is not ok' '
@@ -94,7 +94,7 @@ test_expect_success 'restore --ignore-unmerged ignores unmerged entries' '
 		git switch -c first &&
 		echo first >unmerged &&
 		git commit -am first &&
-		git switch -c second master &&
+		git switch -c second main &&
 		echo second >unmerged &&
 		git commit -am second &&
 		test_must_fail git merge first &&
t/t2400-worktree-add.sh +34 -34

226 lines not on this page · raw message

t/t2401-worktree-prune.sh +2 -2
index e6fc27de1e..aff877590d 100755
@@ -2,7 +2,7 @@
 
 test_description='prune $GIT_DIR/worktrees'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -90,7 +90,7 @@ test_expect_success 'not prune recent checkouts' '
 
 test_expect_success 'not prune proper checkouts' '
 	test_when_finished rm -r .git/worktrees &&
-	git worktree add --detach "$PWD/nop" master &&
+	git worktree add --detach "$PWD/nop" main &&
 	git worktree prune &&
 	test -d .git/worktrees/nop
 '
t/t2402-worktree-list.sh +11 -11
index 3b23b0fdb7..821a20f3d6 100755
@@ -2,7 +2,7 @@
 
 test_description='test git worktree list'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -24,7 +24,7 @@ test_expect_success 'rev-parse --git-common-dir on main worktree' '
 test_expect_success 'rev-parse --git-path objects linked worktree' '
 	echo "$(git rev-parse --show-toplevel)/.git/objects" >expect &&
 	test_when_finished "rm -rf linked-tree actual expect && git worktree prune" &&
-	git worktree add --detach linked-tree master &&
+	git worktree add --detach linked-tree main &&
 	git -C linked-tree rev-parse --git-path objects >actual &&
 	test_cmp expect actual
 '
@@ -32,7 +32,7 @@ test_expect_success 'rev-parse --git-path objects linked worktree' '
 test_expect_success '"list" all worktrees from main' '
 	echo "$(git rev-parse --show-toplevel) $(git rev-parse --short HEAD) [$(git symbolic-ref --short HEAD)]" >expect &&
 	test_when_finished "rm -rf here out actual expect && git worktree prune" &&
-	git worktree add --detach here master &&
+	git worktree add --detach here main &&
 	echo "$(git -C here rev-parse --show-toplevel) $(git rev-parse --short HEAD) (detached HEAD)" >>expect &&
 	git worktree list >out &&
 	sed "s/  */ /g" <out >actual &&
@@ -42,7 +42,7 @@ test_expect_success '"list" all worktrees from main' '
 test_expect_success '"list" all worktrees from linked' '
 	echo "$(git rev-parse --show-toplevel) $(git rev-parse --short HEAD) [$(git symbolic-ref --short HEAD)]" >expect &&
 	test_when_finished "rm -rf here out actual expect && git worktree prune" &&
-	git worktree add --detach here master &&
+	git worktree add --detach here main &&
 	echo "$(git -C here rev-parse --show-toplevel) $(git rev-parse --short HEAD) (detached HEAD)" >>expect &&
 	git -C here worktree list >out &&
 	sed "s/  */ /g" <out >actual &&
@@ -55,7 +55,7 @@ test_expect_success '"list" all worktrees --porcelain' '
 	echo "branch $(git symbolic-ref HEAD)" >>expect &&
 	echo >>expect &&
 	test_when_finished "rm -rf here actual expect && git worktree prune" &&
-	git worktree add --detach here master &&
+	git worktree add --detach here main &&
 	echo "worktree $(git -C here rev-parse --show-toplevel)" >>expect &&
 	echo "HEAD $(git rev-parse HEAD)" >>expect &&
 	echo "detached" >>expect &&
@@ -66,8 +66,8 @@ test_expect_success '"list" all worktrees --porcelain' '
 
 test_expect_success '"list" all worktrees with locked annotation' '
 	test_when_finished "rm -rf locked unlocked out && git worktree prune" &&
-	git worktree add --detach locked master &&
-	git worktree add --detach unlocked master &&
+	git worktree add --detach locked main &&
+	git worktree add --detach unlocked main &&
 	git worktree lock locked &&
 	git worktree list >out &&
 	grep "/locked  *[0-9a-f].* locked$" out &&
@@ -79,13 +79,13 @@ test_expect_success 'bare repo setup' '
 	echo "data" >file1 &&
 	git add file1 &&
 	git commit -m"File1: add data" &&
-	git push bare1 master &&
+	git push bare1 main &&
 	git reset --hard HEAD^
 '
 
 test_expect_success '"list" all worktrees from bare main' '
 	test_when_finished "rm -rf there out actual expect && git -C bare1 worktree prune" &&
-	git -C bare1 worktree add --detach ../there master &&
+	git -C bare1 worktree add --detach ../there main &&
 	echo "$(pwd)/bare1 (bare)" >expect &&
 	echo "$(git -C there rev-parse --show-toplevel) $(git -C there rev-parse --short HEAD) (detached HEAD)" >>expect &&
 	git -C bare1 worktree list >out &&
@@ -95,7 +95,7 @@ test_expect_success '"list" all worktrees from bare main' '
 
 test_expect_success '"list" all worktrees --porcelain from bare main' '
 	test_when_finished "rm -rf there actual expect && git -C bare1 worktree prune" &&
-	git -C bare1 worktree add --detach ../there master &&
+	git -C bare1 worktree add --detach ../there main &&
 	echo "worktree $(pwd)/bare1" >expect &&
 	echo "bare" >>expect &&
 	echo >>expect &&
@@ -109,7 +109,7 @@ test_expect_success '"list" all worktrees --porcelain from bare main' '
 
 test_expect_success '"list" all worktrees from linked with a bare main' '
 	test_when_finished "rm -rf there out actual expect && git -C bare1 worktree prune" &&
-	git -C bare1 worktree add --detach ../there master &&
+	git -C bare1 worktree add --detach ../there main &&
 	echo "$(pwd)/bare1 (bare)" >expect &&
 	echo "$(git -C there rev-parse --show-toplevel) $(git -C there rev-parse --short HEAD) (detached HEAD)" >>expect &&
 	git -C there worktree list >out &&
t/t2405-worktree-submodule.sh +4 -4
index cca2aea658..b172c26ca4 100755
@@ -2,7 +2,7 @@
 
 test_description='Combination of submodules and multiple worktrees'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -34,7 +34,7 @@ test_expect_success 'add superproject worktree' '
 '
 
 test_expect_failure 'submodule is checked out just after worktree add' '
-	git -C worktree diff --submodule master"^!" >out &&
+	git -C worktree diff --submodule main"^!" >out &&
 	grep "file1 updated" out
 '
 
@@ -44,7 +44,7 @@ test_expect_success 'add superproject worktree and initialize submodules' '
 '
 
 test_expect_success 'submodule is checked out just after submodule update in linked worktree' '
-	git -C worktree-submodule-update diff --submodule master"^!" >out &&
+	git -C worktree-submodule-update diff --submodule main"^!" >out &&
 	grep "file1 updated" out
 '
 
@@ -54,7 +54,7 @@ test_expect_success 'add superproject worktree and manually add submodule worktr
 '
 
 test_expect_success 'submodule is checked out after manually adding submodule worktree' '
-	git -C linked_submodule diff --submodule master"^!" >out &&
+	git -C linked_submodule diff --submodule main"^!" >out &&
 	grep "file1 updated" out
 '
 
Signature · 1 line
gitgitgadget
#100 lore raw

PATCH v3 7/28 t34*: adjust the references to the default branch name "main"

In reply to Johannes Schindelin via GitGitGadget

From: Johannes Schindelin <[email protected]>

Carefully excluding t3404, which sees independent development elsewhere at the time of writing, we use main as the default branch name in t34*. This trick was performed via

	$ (cd t &&
	   sed -i -e 's/master/main/g' -e 's/MASTER/MAIN/g' \
		-e 's/Master/Main/g' -- t34*.sh &&
	   git checkout HEAD -- t34\*)

This allows us to define GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main for those tests.

---
 t/t3400-rebase.sh                 | 62 +++++++++++++++----------------
 t/t3402-rebase-merge.sh           | 46 +++++++++++------------
 t/t3403-rebase-skip.sh            |  8 ++--
 t/t3405-rebase-malformed.sh       | 10 ++---
 t/t3406-rebase-message.sh         | 26 ++++++-------
 t/t3407-rebase-abort.sh           | 20 +++++-----
 t/t3408-rebase-multi-line.sh      |  4 +-
 t/t3409-rebase-preserve-merges.sh | 12 +++---
 t/t3412-rebase-root.sh            | 30 +++++++--------
 t/t3413-rebase-hook.sh            | 44 +++++++++++-----------
 t/t3415-rebase-autosquash.sh      |  4 +-
 t/t3416-rebase-onto-threedots.sh  | 56 ++++++++++++++--------------
 t/t3418-rebase-continue.sh        | 26 ++++++-------
 t/t3419-rebase-patch-id.sh        | 14 +++----
 t/t3420-rebase-autostash.sh       | 10 ++---
 t/t3423-rebase-reword.sh          |  6 +--
 t/t3427-rebase-subtree.sh         | 22 +++++------
 t/t3430-rebase-merges.sh          | 18 ++++-----
 t/t3431-rebase-fork-point.sh      | 34 ++++++++---------
 t/t3432-rebase-fast-forward.sh    | 36 +++++++++---------
 t/t3434-rebase-i18n.sh            | 10 ++---
 t/t3435-rebase-gpg-sign.sh        |  6 +--
 t/t3436-rebase-more-options.sh    |  2 +-
 23 files changed, 253 insertions(+), 253 deletions(-)
t/t3400-rebase.sh +31 -31
index 61577591d0..5e88a10f8d 100755
@@ -8,7 +8,7 @@ test_description='git rebase assorted tests
 This test runs git rebase and checks that the author information is not lost
 among other things.
 '
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -27,15 +27,15 @@ test_expect_success 'prepare repository with topic branches' '
 	git update-index --add Y &&
 	git commit -m "Add Y." &&
 	git checkout -b filemove &&
-	git reset --soft master &&
+	git reset --soft main &&
 	mkdir D &&
 	git mv A D/A &&
 	git commit -m "Move A." &&
-	git checkout -b my-topic-branch master &&
+	git checkout -b my-topic-branch main &&
 	echo Second >B &&
 	git update-index --add B &&
 	git commit -m "Add B." &&
-	git checkout -f master &&
+	git checkout -f main &&
 	echo Third >>A &&
 	git update-index A &&
 	git commit -m "Modify A." &&
@@ -49,23 +49,23 @@ test_expect_success 'prepare repository with topic branches' '
 
 test_expect_success 'rebase on dirty worktree' '
 	echo dirty >>A &&
-	test_must_fail git rebase master
+	test_must_fail git rebase main
 '
 
 test_expect_success 'rebase on dirty cache' '
 	git add A &&
-	test_must_fail git rebase master
+	test_must_fail git rebase main
 '
 
-test_expect_success 'rebase against master' '
+test_expect_success 'rebase against main' '
 	git reset --hard HEAD &&
-	git rebase master
+	git rebase main
 '
 
 test_expect_success 'rebase sets ORIG_HEAD to pre-rebase state' '
 	git checkout -b orig-head topic &&
 	pre="$(git rev-parse --verify HEAD)" &&
-	git rebase master &&
+	git rebase main &&
 	test_cmp_rev "$pre" ORIG_HEAD &&
 	test_cmp_rev ! "$pre" HEAD
 '
@@ -96,19 +96,19 @@ test_expect_success 'HEAD was detached during rebase' '
 
 test_expect_success 'rebase from ambiguous branch name' '
 	git checkout -b topic side &&
-	git rebase master
+	git rebase main
 '
 
 test_expect_success 'rebase off of the previous branch using "-"' '
-	git checkout master &&
+	git checkout main &&
 	git checkout HEAD^ &&
 	git rebase @{-1} >expect.messages &&
-	git merge-base master HEAD >expect.forkpoint &&
+	git merge-base main HEAD >expect.forkpoint &&
 
-	git checkout master &&
+	git checkout main &&
 	git checkout HEAD^ &&
 	git rebase - >actual.messages &&
-	git merge-base master HEAD >actual.forkpoint &&
+	git merge-base main HEAD >actual.forkpoint &&
 
 	test_cmp expect.forkpoint actual.forkpoint &&
 	# the next one is dubious---we may want to say "-",
@@ -117,7 +117,7 @@ test_expect_success 'rebase off of the previous branch using "-"' '
 '
 
 test_expect_success 'rebase a single mode change' '
-	git checkout master &&
+	git checkout main &&
 	git branch -D topic &&
 	echo 1 >X &&
 	git add X &&
@@ -129,7 +129,7 @@ test_expect_success 'rebase a single mode change' '
 	test_chmod +x A &&
 	test_tick &&
 	git commit -m modechange &&
-	GIT_TRACE=1 git rebase master
+	GIT_TRACE=1 git rebase main
 '
 
 test_expect_success 'rebase is not broken by diff.renames' '
@@ -165,11 +165,11 @@ test_expect_success 'fail when upstream arg is missing and not configured' '
 test_expect_success 'rebase works with format.useAutoBase' '
 	test_config format.useAutoBase true &&
 	git checkout topic &&
-	git rebase master
+	git rebase main
 '
 
 test_expect_success 'default to common base in @{upstream}s reflog if no upstream arg (--merge)' '
-	git checkout -b default-base master &&
+	git checkout -b default-base main &&
 	git checkout -b default topic &&
 	git config branch.default.remote . &&
 	git config branch.default.merge refs/heads/default-base &&
@@ -187,7 +187,7 @@ test_expect_success 'default to common base in @{upstream}s reflog if no upstrea
 '
 
 test_expect_success 'default to common base in @{upstream}s reflog if no upstream arg (--apply)' '
-	git checkout -B default-base master &&
+	git checkout -B default-base main &&
 	git checkout -B default topic &&
 	git config branch.default.remote . &&
 	git config branch.default.merge refs/heads/default-base &&
@@ -229,13 +229,13 @@ test_expect_success 'cherry-picked commits and fork-point work together' '
 
 test_expect_success 'rebase --apply -q is quiet' '
 	git checkout -b quiet topic &&
-	git rebase --apply -q master >output.out 2>&1 &&
+	git rebase --apply -q main >output.out 2>&1 &&
 	test_must_be_empty output.out
 '
 
 test_expect_success 'rebase --merge -q is quiet' '
 	git checkout -B quiet topic &&
-	git rebase --merge -q master >output.out 2>&1 &&
+	git rebase --merge -q main >output.out 2>&1 &&
 	test_must_be_empty output.out
 '
 
@@ -297,7 +297,7 @@ test_expect_success 'rebase commit with an ancient timestamp' '
 '
 
 test_expect_success 'rebase with "From " line in commit message' '
-	git checkout -b preserve-from master~1 &&
+	git checkout -b preserve-from main~1 &&
 	cat >From_.msg <<EOF &&
 Somebody embedded an mbox in a commit message
 
@@ -313,7 +313,7 @@ EOF
 	>From_ &&
 	git add From_ &&
 	git commit -F From_.msg &&
-	git rebase master &&
+	git rebase main &&
 	git log -1 --pretty=format:%B >out &&
 	test_cmp From_.msg out
 '
@@ -360,12 +360,12 @@ test_expect_success 'rebase --apply and .gitattributes' '
 		git cherry-pick test &&
 
 		git checkout test &&
-		git rebase master &&
+		git rebase main &&
 		grep "smudged" a.txt &&
 
 		git checkout removal &&
 		git reset --hard &&
-		git rebase master &&
+		git rebase main &&
 		grep "clean" a.txt
 	)
 '
@@ -405,20 +405,20 @@ test_expect_success 'rebase -c rebase.useBuiltin=false warning' '
 '
 
 test_expect_success 'switch to branch checked out here' '
-	git checkout master &&
-	git rebase master master
+	git checkout main &&
+	git rebase main main
 '
 
 test_expect_success 'switch to branch not checked out' '
-	git checkout master &&
+	git checkout main &&
 	git branch other &&
-	git rebase master other
+	git rebase main other
 '
 
 test_expect_success 'refuse to switch to branch checked out elsewhere' '
-	git checkout master &&
+	git checkout main &&
 	git worktree add wt &&
-	test_must_fail git -C wt rebase master master 2>err &&
+	test_must_fail git -C wt rebase main main 2>err &&
 	test_i18ngrep "already checked out" err
 '
 
t/t3402-rebase-merge.sh +23 -23

140 lines not on this page · raw message

t/t3403-rebase-skip.sh +4 -4
index c9936cb1d9..e26762d0b2 100755
@@ -5,7 +5,7 @@
 
 test_description='git rebase --merge --skip tests'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -51,7 +51,7 @@ test_expect_success setup '
 	'
 
 test_expect_success 'rebase with git am -3 (default)' '
-	test_must_fail git rebase master
+	test_must_fail git rebase main
 '
 
 test_expect_success 'rebase --skip can not be used with other options' '
@@ -67,7 +67,7 @@ test_expect_success 'rebase moves back to skip-reference' '
 	test refs/heads/skip-reference = $(git symbolic-ref HEAD) &&
 	git branch post-rebase &&
 	git reset --hard pre-rebase &&
-	test_must_fail git rebase master &&
+	test_must_fail git rebase main &&
 	echo "hello" > hello &&
 	git add hello &&
 	git rebase --continue &&
@@ -78,7 +78,7 @@ test_expect_success 'rebase moves back to skip-reference' '
 test_expect_success 'checkout skip-merge' 'git checkout -f skip-merge'
 
 test_expect_success 'rebase with --merge' '
-	test_must_fail git rebase --merge master
+	test_must_fail git rebase --merge main
 '
 
 test_expect_success 'rebase --skip with --merge' '
t/t3405-rebase-malformed.sh +5 -5
index d8f6d2e3cb..2524331861 100755
@@ -2,7 +2,7 @@
 
 test_description='rebase should handle arbitrary git message'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -55,7 +55,7 @@ test_expect_success setup '
 	git add file3 &&
 	git commit --allow-empty-message -m "" &&
 
-	git checkout master &&
+	git checkout main &&
 
 	echo One >file1 &&
 	test_tick &&
@@ -65,7 +65,7 @@ test_expect_success setup '
 
 test_expect_success 'rebase commit with multi-line subject' '
 
-	git rebase master multi-line-subject &&
+	git rebase main multi-line-subject &&
 	git cat-file commit HEAD | sed -e "1,/^\$/d" >F1 &&
 
 	test_cmp F0 F1 &&
@@ -73,14 +73,14 @@ test_expect_success 'rebase commit with multi-line subject' '
 '
 
 test_expect_success 'rebase commit with diff in message' '
-	git rebase master diff-in-message &&
+	git rebase main diff-in-message &&
 	git cat-file commit HEAD | sed -e "1,/^$/d" >G1 &&
 	test_cmp G0 G1 &&
 	test_cmp G G0
 '
 
 test_expect_success 'rebase -m commit with empty message' '
-	git rebase -m master empty-message-merge
+	git rebase -m main empty-message-merge
 '
 
 test_expect_success 'rebase -i commit with empty message' '
t/t3406-rebase-message.sh +13 -13
index 863db3ac4c..c02729d5ea 100755
@@ -2,7 +2,7 @@
 
 test_description='messages from rebase operation'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -21,27 +21,27 @@ test_expect_success 'setup' '
 '
 
 test_expect_success 'rebase -m' '
-	git rebase -m master >actual &&
+	git rebase -m main >actual &&
 	test_must_be_empty actual
 '
 
-test_expect_success 'rebase against master twice' '
-	git rebase --apply master >out &&
+test_expect_success 'rebase against main twice' '
+	git rebase --apply main >out &&
 	test_i18ngrep "Current branch topic is up to date" out
 '
 
-test_expect_success 'rebase against master twice with --force' '
-	git rebase --force-rebase --apply master >out &&
+test_expect_success 'rebase against main twice with --force' '
+	git rebase --force-rebase --apply main >out &&
 	test_i18ngrep "Current branch topic is up to date, rebase forced" out
 '
 
-test_expect_success 'rebase against master twice from another branch' '
+test_expect_success 'rebase against main twice from another branch' '
 	git checkout topic^ &&
-	git rebase --apply master topic >out &&
+	git rebase --apply main topic >out &&
 	test_i18ngrep "Current branch topic is up to date" out
 '
 
-test_expect_success 'rebase fast-forward to master' '
+test_expect_success 'rebase fast-forward to main' '
 	git checkout topic^ &&
 	git rebase --apply topic >out &&
 	test_i18ngrep "Fast-forwarded HEAD to topic" out
@@ -49,21 +49,21 @@ test_expect_success 'rebase fast-forward to master' '
 
 test_expect_success 'rebase --stat' '
 	git reset --hard start &&
-	git rebase --stat master >diffstat.txt &&
+	git rebase --stat main >diffstat.txt &&
 	grep "^ fileX |  *1 +$" diffstat.txt
 '
 
 test_expect_success 'rebase w/config rebase.stat' '
 	git reset --hard start &&
 	git config rebase.stat true &&
-	git rebase master >diffstat.txt &&
+	git rebase main >diffstat.txt &&
 	grep "^ fileX |  *1 +$" diffstat.txt
 '
 
 test_expect_success 'rebase -n overrides config rebase.stat config' '
 	git reset --hard start &&
 	git config rebase.stat true &&
-	git rebase -n master >diffstat.txt &&
+	git rebase -n main >diffstat.txt &&
 	! grep "^ fileX |  *1 +$" diffstat.txt
 '
 
@@ -116,7 +116,7 @@ test_expect_success 'rebase -i onto unrelated history' '
 	git init unrelated &&
 	test_commit -C unrelated 1 &&
 	git -C unrelated remote add -f origin "$PWD" &&
-	git -C unrelated branch --set-upstream-to=origin/master &&
+	git -C unrelated branch --set-upstream-to=origin/main &&
 	git -C unrelated -c core.editor=true rebase -i -v --stat >actual &&
 	test_i18ngrep "Changes to " actual &&
 	test_i18ngrep "5 files changed" actual
t/t3407-rebase-abort.sh +10 -10
index e3c1851f40..7c381fbc89 100755
@@ -2,7 +2,7 @@
 
 test_description='git rebase --abort tests'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -40,7 +40,7 @@ testrebase() {
 		cd "$work_dir" &&
 		# Clean up the state from the previous one
 		git reset --hard pre-rebase &&
-		test_must_fail git rebase$type master &&
+		test_must_fail git rebase$type main &&
 		test_path_is_dir "$dotest" &&
 		git rebase --abort &&
 		test $(git rev-parse to-rebase) = $(git rev-parse pre-rebase) &&
@@ -51,10 +51,10 @@ testrebase() {
 		cd "$work_dir" &&
 		# Clean up the state from the previous one
 		git reset --hard pre-rebase &&
-		test_must_fail git rebase$type master &&
+		test_must_fail git rebase$type main &&
 		test_path_is_dir "$dotest" &&
 		test_must_fail git rebase --skip &&
-		test $(git rev-parse HEAD) = $(git rev-parse master) &&
+		test $(git rev-parse HEAD) = $(git rev-parse main) &&
 		git rebase --abort &&
 		test $(git rev-parse to-rebase) = $(git rev-parse pre-rebase) &&
 		test ! -d "$dotest"
@@ -64,13 +64,13 @@ testrebase() {
 		cd "$work_dir" &&
 		# Clean up the state from the previous one
 		git reset --hard pre-rebase &&
-		test_must_fail git rebase$type master &&
+		test_must_fail git rebase$type main &&
 		test_path_is_dir "$dotest" &&
 		echo c > a &&
 		echo d >> a &&
 		git add a &&
 		test_must_fail git rebase --continue &&
-		test $(git rev-parse HEAD) != $(git rev-parse master) &&
+		test $(git rev-parse HEAD) != $(git rev-parse main) &&
 		git rebase --abort &&
 		test $(git rev-parse to-rebase) = $(git rev-parse pre-rebase) &&
 		test ! -d "$dotest"
@@ -81,7 +81,7 @@ testrebase() {
 		# Clean up the state from the previous one
 		git reset --hard pre-rebase &&
 		git reflog show to-rebase > reflog_before &&
-		test_must_fail git rebase$type master &&
+		test_must_fail git rebase$type main &&
 		git rebase --abort &&
 		git reflog show to-rebase > reflog_after &&
 		test_cmp reflog_before reflog_after &&
@@ -92,7 +92,7 @@ testrebase() {
 		cd "$work_dir" &&
 		# Clean up the state from the previous one
 		git reset --hard pre-rebase &&
-		test_must_fail git rebase$type master &&
+		test_must_fail git rebase$type main &&
 		test_must_fail git rebase -v --abort &&
 		test_must_fail git rebase --abort -v &&
 		git rebase --abort
@@ -106,7 +106,7 @@ test_expect_success 'rebase --apply --quit' '
 	cd "$work_dir" &&
 	# Clean up the state from the previous one
 	git reset --hard pre-rebase &&
-	test_must_fail git rebase --apply master &&
+	test_must_fail git rebase --apply main &&
 	test_path_is_dir .git/rebase-apply &&
 	head_before=$(git rev-parse HEAD) &&
 	git rebase --quit &&
@@ -118,7 +118,7 @@ test_expect_success 'rebase --merge --quit' '
 	cd "$work_dir" &&
 	# Clean up the state from the previous one
 	git reset --hard pre-rebase &&
-	test_must_fail git rebase --merge master &&
+	test_must_fail git rebase --merge main &&
 	test_path_is_dir .git/rebase-merge &&
 	head_before=$(git rev-parse HEAD) &&
 	git rebase --quit &&
t/t3408-rebase-multi-line.sh +2 -2
index 6dd56c4c15..ab0960e6d9 100755
@@ -2,7 +2,7 @@
 
 test_description='rebasing a commit with multi-line first paragraph.'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -49,7 +49,7 @@ But otherwise with a sane description." side2 &&
 test_expect_success rebase '
 
 	git checkout side &&
-	git rebase master &&
+	git rebase main &&
 	git cat-file commit HEAD | sed -e "1,/^\$/d" >actual &&
 	git cat-file commit side@{1} | sed -e "1,/^\$/d" >expect &&
 	test_cmp expect actual
t/t3409-rebase-preserve-merges.sh +6 -6
index 609efc96f9..ec8062a66a 100755
@@ -6,7 +6,7 @@ test_description='git rebase -p should preserve merges
 
 Run "git rebase -p" and check that merges are properly carried along
 '
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -21,7 +21,7 @@ export GIT_AUTHOR_EMAIL
 
 # Clone 2 (conflicting merge):
 #
-# A1--A2--B3   <-- origin/master
+# A1--A2--B3   <-- origin/main
 #  \       \
 #   B1------M  <-- topic
 #    \
@@ -29,7 +29,7 @@ export GIT_AUTHOR_EMAIL
 #
 # Clone 3 (no-ff merge):
 #
-# A1--A2--B3   <-- origin/master
+# A1--A2--B3   <-- origin/main
 #  \
 #   B1------M  <-- topic
 #    \     /
@@ -47,7 +47,7 @@ test_expect_success 'setup for merge-preserving rebase' \
 	echo Second > B &&
 	git add B &&
 	git commit -m "Add B1" &&
-	git checkout -f master &&
+	git checkout -f main &&
 	echo Third >> A &&
 	git commit -a -m "Modify A2" &&
 	echo Fifth > B &&
@@ -58,10 +58,10 @@ test_expect_success 'setup for merge-preserving rebase' \
 	(
 		cd clone2 &&
 		git checkout -b topic origin/topic &&
-		test_must_fail git merge origin/master &&
+		test_must_fail git merge origin/main &&
 		echo Resolved >B &&
 		git add B &&
-		git commit -m "Merge origin/master into topic"
+		git commit -m "Merge origin/main into topic"
 	) &&
 
 	git clone ./. clone3 &&
t/t3412-rebase-root.sh +15 -15
index 07597643c5..fda62c65bd 100755
@@ -4,7 +4,7 @@ test_description='git rebase --root
 
 Tests if git rebase --root --onto <newparent> can rebase the root commit.
 '
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -27,7 +27,7 @@ test_expect_success 'prepare repository' '
 
 test_expect_success 'rebase --root fails with too many args' '
 	git checkout -B fail other &&
-	test_must_fail git rebase --onto master --root fail fail
+	test_must_fail git rebase --onto main --root fail fail
 '
 
 test_expect_success 'setup pre-rebase hook' '
@@ -47,7 +47,7 @@ EOF
 
 test_expect_success 'rebase --root --onto <newbase>' '
 	git checkout -b work other &&
-	git rebase --root --onto master &&
+	git rebase --root --onto main &&
 	git log --pretty=tformat:"%s" > rebased &&
 	test_cmp expect rebased
 '
@@ -58,7 +58,7 @@ test_expect_success 'pre-rebase got correct input (1)' '
 
 test_expect_success 'rebase --root --onto <newbase> <branch>' '
 	git branch work2 other &&
-	git rebase --root --onto master work2 &&
+	git rebase --root --onto main work2 &&
 	git log --pretty=tformat:"%s" > rebased2 &&
 	test_cmp expect rebased2
 '
@@ -69,7 +69,7 @@ test_expect_success 'pre-rebase got correct input (2)' '
 
 test_expect_success 'rebase -i --root --onto <newbase>' '
 	git checkout -b work3 other &&
-	git rebase -i --root --onto master &&
+	git rebase -i --root --onto main &&
 	git log --pretty=tformat:"%s" > rebased3 &&
 	test_cmp expect rebased3
 '
@@ -80,7 +80,7 @@ test_expect_success 'pre-rebase got correct input (3)' '
 
 test_expect_success 'rebase -i --root --onto <newbase> <branch>' '
 	git branch work4 other &&
-	git rebase -i --root --onto master work4 &&
+	git rebase -i --root --onto main work4 &&
 	git log --pretty=tformat:"%s" > rebased4 &&
 	test_cmp expect rebased4
 '
@@ -91,7 +91,7 @@ test_expect_success 'pre-rebase got correct input (4)' '
 
 test_expect_success REBASE_P 'rebase -i -p with linear history' '
 	git checkout -b work5 other &&
-	git rebase -i -p --root --onto master &&
+	git rebase -i -p --root --onto main &&
 	git log --pretty=tformat:"%s" > rebased5 &&
 	test_cmp expect rebased5
 '
@@ -125,7 +125,7 @@ EOF
 
 test_expect_success REBASE_P 'rebase -i -p with merge' '
 	git checkout -b work6 other &&
-	git rebase -i -p --root --onto master &&
+	git rebase -i -p --root --onto main &&
 	log_with_names work6 > rebased6 &&
 	test_cmp expect-side rebased6
 '
@@ -160,7 +160,7 @@ EOF
 
 test_expect_success REBASE_P 'rebase -i -p with two roots' '
 	git checkout -b work7 other &&
-	git rebase -i -p --root --onto master &&
+	git rebase -i -p --root --onto main &&
 	log_with_names work7 > rebased7 &&
 	test_cmp expect-third rebased7
 '
@@ -176,14 +176,14 @@ EOF
 
 test_expect_success 'pre-rebase hook stops rebase' '
 	git checkout -b stops1 other &&
-	test_must_fail git rebase --root --onto master &&
+	test_must_fail git rebase --root --onto main &&
 	test "z$(git symbolic-ref HEAD)" = zrefs/heads/stops1 &&
 	test 0 = $(git rev-list other...stops1 | wc -l)
 '
 
 test_expect_success 'pre-rebase hook stops rebase -i' '
 	git checkout -b stops2 other &&
-	test_must_fail git rebase --root --onto master &&
+	test_must_fail git rebase --root --onto main &&
 	test "z$(git symbolic-ref HEAD)" = zrefs/heads/stops2 &&
 	test 0 = $(git rev-list other...stops2 | wc -l)
 '
@@ -193,7 +193,7 @@ test_expect_success 'remove pre-rebase hook' '
 '
 
 test_expect_success 'set up a conflict' '
-	git checkout master &&
+	git checkout main &&
 	echo conflict > B &&
 	git add B &&
 	git commit -m conflict
@@ -201,7 +201,7 @@ test_expect_success 'set up a conflict' '
 
 test_expect_success 'rebase --root with conflict (first part)' '
 	git checkout -b conflict1 other &&
-	test_must_fail git rebase --root --onto master &&
+	test_must_fail git rebase --root --onto main &&
 	git ls-files -u | grep "B$"
 '
 
@@ -228,7 +228,7 @@ test_expect_success 'rebase --root with conflict (second part)' '
 
 test_expect_success 'rebase -i --root with conflict (first part)' '
 	git checkout -b conflict2 other &&
-	test_must_fail git rebase -i --root --onto master &&
+	test_must_fail git rebase -i --root --onto main &&
 	git ls-files -u | grep "B$"
 '
 
@@ -266,7 +266,7 @@ EOF
 
 test_expect_success REBASE_P 'rebase -i -p --root with conflict (first part)' '
 	git checkout -b conflict3 other &&
-	test_must_fail git rebase -i -p --root --onto master &&
+	test_must_fail git rebase -i -p --root --onto main &&
 	git ls-files -u | grep "B$"
 '
 
t/t3413-rebase-hook.sh +22 -22

131 lines not on this page · raw message

t/t3415-rebase-autosquash.sh +2 -2
index 35eb8e2bb2..e7087befd4 100755
@@ -2,7 +2,7 @@
 
 test_description='auto squash'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -410,7 +410,7 @@ test_expect_success 'wrapped original subject' '
 
 test_expect_success 'abort last squash' '
 	test_when_finished "test_might_fail git rebase --abort" &&
-	test_when_finished "git checkout master" &&
+	test_when_finished "git checkout main" &&
 
 	git checkout -b some-squashes &&
 	git commit --allow-empty -m first &&
t/t3416-rebase-onto-threedots.sh +28 -28

174 lines not on this page · raw message

t/t3418-rebase-continue.sh +13 -13
index 445cb843ba..0838f4e798 100755
@@ -2,7 +2,7 @@
 
 test_description='git rebase --continue tests'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -18,13 +18,13 @@ test_expect_success 'setup' '
 	git checkout -b topic HEAD^ &&
 	test_commit "commit-new-file-F2-on-topic-branch" F2 22 &&
 
-	git checkout master
+	git checkout main
 '
 
 test_expect_success 'interactive rebase --continue works with touched file' '
 	rm -fr .git/rebase-* &&
 	git reset --hard &&
-	git checkout master &&
+	git checkout main &&
 
 	FAKE_LINES="edit 1" git rebase -i HEAD^ &&
 	test-tool chmtime =-60 F1 &&
@@ -34,9 +34,9 @@ test_expect_success 'interactive rebase --continue works with touched file' '
 test_expect_success 'non-interactive rebase --continue works with touched file' '
 	rm -fr .git/rebase-* &&
 	git reset --hard &&
-	git checkout master &&
+	git checkout main &&
 
-	test_must_fail git rebase --onto master master topic &&
+	test_must_fail git rebase --onto main main topic &&
 	echo "Resolved" >F2 &&
 	git add F2 &&
 	test-tool chmtime =-60 F1 &&
@@ -64,7 +64,7 @@ test_expect_success 'rebase --continue remembers merge strategy and options' '
 	chmod +x test-bin/git-merge-funny &&
 	(
 		PATH=./test-bin:$PATH &&
-		test_must_fail git rebase -s funny -Xopt master topic
+		test_must_fail git rebase -s funny -Xopt main topic
 	) &&
 	test -f funny.was.run &&
 	rm funny.was.run &&
@@ -96,7 +96,7 @@ test_expect_success 'rebase -i --continue handles merge strategy and options' '
 	chmod +x test-bin/git-merge-funny &&
 	(
 		PATH=./test-bin:$PATH &&
-		test_must_fail git rebase -i -s funny -Xopt -Xfoo master topic
+		test_must_fail git rebase -i -s funny -Xopt -Xfoo main topic
 	) &&
 	test -f funny.was.run &&
 	rm funny.was.run &&
@@ -191,11 +191,11 @@ test_expect_success '--skip after failed fixup cleans commit message' '
 test_expect_success 'setup rerere database' '
 	rm -fr .git/rebase-* &&
 	git reset --hard commit-new-file-F3-on-topic-branch &&
-	git checkout master &&
+	git checkout main &&
 	test_commit "commit-new-file-F3" F3 3 &&
 	test_config rerere.enabled true &&
 	git update-ref refs/heads/topic commit-new-file-F3-on-topic-branch &&
-	test_must_fail git rebase -m master topic &&
+	test_must_fail git rebase -m main topic &&
 	echo "Resolved" >F2 &&
 	cp F2 expected-F2 &&
 	git add F2 &&
@@ -210,7 +210,7 @@ test_expect_success 'setup rerere database' '
 prepare () {
 	rm -fr .git/rebase-* &&
 	git reset --hard commit-new-file-F3-on-topic-branch &&
-	git checkout master &&
+	git checkout main &&
 	test_config rerere.enabled true
 }
 
@@ -218,7 +218,7 @@ test_rerere_autoupdate () {
 	action=$1 &&
 	test_expect_success "rebase $action --continue remembers --rerere-autoupdate" '
 		prepare &&
-		test_must_fail git rebase $action --rerere-autoupdate master topic &&
+		test_must_fail git rebase $action --rerere-autoupdate main topic &&
 		test_cmp expected-F2 F2 &&
 		git diff-files --quiet &&
 		test_must_fail git rebase --continue &&
@@ -230,7 +230,7 @@ test_rerere_autoupdate () {
 	test_expect_success "rebase $action --continue honors rerere.autoUpdate" '
 		prepare &&
 		test_config rerere.autoupdate true &&
-		test_must_fail git rebase $action master topic &&
+		test_must_fail git rebase $action main topic &&
 		test_cmp expected-F2 F2 &&
 		git diff-files --quiet &&
 		test_must_fail git rebase --continue &&
@@ -242,7 +242,7 @@ test_rerere_autoupdate () {
 	test_expect_success "rebase $action --continue remembers --no-rerere-autoupdate" '
 		prepare &&
 		test_config rerere.autoupdate true &&
-		test_must_fail git rebase $action --no-rerere-autoupdate master topic &&
+		test_must_fail git rebase $action --no-rerere-autoupdate main topic &&
 		test_cmp expected-F2 F2 &&
 		test_must_fail git diff-files --quiet &&
 		git add F2 &&
t/t3419-rebase-patch-id.sh +7 -7
index c5fe58d68b..295040f2fe 100755
@@ -2,7 +2,7 @@
 
 test_description='git rebase - test patch id computation'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -27,7 +27,7 @@ test_expect_success 'setup' '
 
 test_expect_success 'setup: 500 lines' '
 	rm -f .gitattributes &&
-	git checkout -q -f master &&
+	git checkout -q -f main &&
 	git reset --hard root &&
 	test_seq 500 >file &&
 	git add file &&
@@ -43,7 +43,7 @@ test_expect_success 'setup: 500 lines' '
 	git add newfile &&
 	git commit -q -m "add small file" &&
 
-	git cherry-pick master >/dev/null 2>&1
+	git cherry-pick main >/dev/null 2>&1
 '
 
 test_expect_success 'setup attributes' '
@@ -51,18 +51,18 @@ test_expect_success 'setup attributes' '
 '
 
 test_expect_success 'detect upstream patch' '
-	git checkout -q master &&
+	git checkout -q main &&
 	scramble file &&
 	git add file &&
 	git commit -q -m "change big file again" &&
 	git checkout -q other^{} &&
-	git rebase master &&
-	git rev-list master...HEAD~ >revs &&
+	git rebase main &&
+	git rev-list main...HEAD~ >revs &&
 	test_must_be_empty revs
 '
 
 test_expect_success 'do not drop patch' '
-	git branch -f squashed master &&
+	git branch -f squashed main &&
 	git checkout -q -f squashed &&
 	git reset -q --soft HEAD~2 &&
 	git commit -q -m squashed &&
t/t3420-rebase-autostash.sh +5 -5
index 95facc49aa..4caa014c71 100755
@@ -4,7 +4,7 @@
 #
 
 test_description='git rebase --autostash tests'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -24,12 +24,12 @@ test_expect_success setup '
 	git add . &&
 	test_tick &&
 	git commit -m "third commit" &&
-	git checkout -b unrelated-onto-branch master &&
+	git checkout -b unrelated-onto-branch main &&
 	echo unrelated >file4 &&
 	git add . &&
 	test_tick &&
 	git commit -m "unrelated commit" &&
-	git checkout -b related-onto-branch master &&
+	git checkout -b related-onto-branch main &&
 	echo conflicting-change >file2 &&
 	git add . &&
 	test_tick &&
@@ -308,7 +308,7 @@ test_expect_success 'autostash is saved on editor failure with conflict' '
 '
 
 test_expect_success 'autostash with dirty submodules' '
-	test_when_finished "git reset --hard && git checkout master" &&
+	test_when_finished "git reset --hard && git checkout main" &&
 	git checkout -b with-submodule &&
 	git submodule add ./ sub &&
 	test_tick &&
@@ -327,7 +327,7 @@ test_expect_success 'branch is left alone when possible' '
 
 test_expect_success 'never change active branch' '
 	git checkout -b not-the-feature-branch unrelated-onto-branch &&
-	test_when_finished "git reset --hard && git checkout master" &&
+	test_when_finished "git reset --hard && git checkout main" &&
 	echo changed >file0 &&
 	git rebase --autostash not-the-feature-branch feature-branch &&
 	test_cmp_rev not-the-feature-branch unrelated-onto-branch
t/t3423-rebase-reword.sh +3 -3
index 6963750794..4859bb8f72 100755
@@ -7,7 +7,7 @@ test_description='git rebase interactive with rewording'
 . "$TEST_DIRECTORY"/lib-rebase.sh
 
 test_expect_success 'setup' '
-	test_commit master file-1 test &&
+	test_commit main file-1 test &&
 
 	git checkout -b stuff &&
 
@@ -22,7 +22,7 @@ test_expect_success 'reword without issues functions as intended' '
 
 	set_fake_editor &&
 	FAKE_LINES="pick 1 reword 2" FAKE_COMMIT_MESSAGE="feature_b_reworded" \
-		git rebase -i -v master &&
+		git rebase -i -v main &&
 
 	test "$(git log -1 --format=%B)" = "feature_b_reworded" &&
 	test $(git rev-list --count HEAD) = 3
@@ -35,7 +35,7 @@ test_expect_success 'reword after a conflict preserves commit' '
 
 	set_fake_editor &&
 	test_must_fail env FAKE_LINES="reword 2" \
-		git rebase -i -v master &&
+		git rebase -i -v main &&
 
 	git checkout --theirs file-2 &&
 	git add file-2 &&
t/t3427-rebase-subtree.sh +11 -11
index 254ed18452..e78c7e3796 100755
@@ -4,7 +4,7 @@ test_description='git rebase tests for -Xsubtree
 
 This test runs git rebase and tests the subtree strategy.
 '
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -20,7 +20,7 @@ commit_message() {
 #
 # topic_1 - topic_2 - topic_3
 #                             \
-# README ---------------------- Add subproject master - topic_4 - files_subtree/topic_5
+# README ---------------------- Add subproject main - topic_4 - files_subtree/topic_5
 #
 # Where the merge moves the files topic_[123].t into the subdirectory
 # files_subtree/ and topic_4 as well as files_subtree/topic_5 add files to that
@@ -31,7 +31,7 @@ commit_message() {
 # an empty commit is added on top. The pre-rebase commit history looks like
 # this:
 #
-# Add subproject master - topic_4 - files_subtree/topic_5 - Empty commit
+# Add subproject main - topic_4 - files_subtree/topic_5 - Empty commit
 #
 # where the root commit adds three files: topic_1.t, topic_2.t and topic_3.t.
 #
@@ -51,11 +51,11 @@ test_expect_success 'setup' '
 	test_commit -C files topic_3 &&
 
 	: perform subtree merge into files_subtree/ &&
-	git fetch files refs/heads/master:refs/heads/files-master &&
+	git fetch files refs/heads/main:refs/heads/files-main &&
 	git merge -s ours --no-commit --allow-unrelated-histories \
-		files-master &&
-	git read-tree --prefix=files_subtree -u files-master &&
-	git commit -m "Add subproject master" &&
+		files-main &&
+	git read-tree --prefix=files_subtree -u files-main &&
+	git commit -m "Add subproject main" &&
 
 	: add two extra commits to rebase &&
 	test_commit -C files_subtree topic_4 &&
@@ -73,7 +73,7 @@ test_expect_success 'setup' '
 test_expect_failure REBASE_P 'Rebase -Xsubtree --preserve-merges --onto commit' '
 	reset_rebase &&
 	git checkout -b rebase-preserve-merges to-rebase &&
-	git rebase -Xsubtree=files_subtree --preserve-merges --onto files-master master &&
+	git rebase -Xsubtree=files_subtree --preserve-merges --onto files-main main &&
 	verbose test "$(commit_message HEAD~)" = "topic_4" &&
 	verbose test "$(commit_message HEAD)" = "files_subtree/topic_5"
 '
@@ -82,7 +82,7 @@ test_expect_failure REBASE_P 'Rebase -Xsubtree --preserve-merges --onto commit'
 test_expect_failure REBASE_P 'Rebase -Xsubtree --keep-empty --preserve-merges --onto commit' '
 	reset_rebase &&
 	git checkout -b rebase-keep-empty to-rebase &&
-	git rebase -Xsubtree=files_subtree --keep-empty --preserve-merges --onto files-master master &&
+	git rebase -Xsubtree=files_subtree --keep-empty --preserve-merges --onto files-main main &&
 	verbose test "$(commit_message HEAD~2)" = "topic_4" &&
 	verbose test "$(commit_message HEAD~)" = "files_subtree/topic_5" &&
 	verbose test "$(commit_message HEAD)" = "Empty commit"
@@ -91,7 +91,7 @@ test_expect_failure REBASE_P 'Rebase -Xsubtree --keep-empty --preserve-merges --
 test_expect_success 'Rebase -Xsubtree --empty=ask --onto commit' '
 	reset_rebase &&
 	git checkout -b rebase-onto to-rebase &&
-	test_must_fail git rebase -Xsubtree=files_subtree --empty=ask --onto files-master master &&
+	test_must_fail git rebase -Xsubtree=files_subtree --empty=ask --onto files-main main &&
 	: first pick results in no changes &&
 	git rebase --skip &&
 	verbose test "$(commit_message HEAD~2)" = "topic_4" &&
@@ -102,7 +102,7 @@ test_expect_success 'Rebase -Xsubtree --empty=ask --onto commit' '
 test_expect_success 'Rebase -Xsubtree --empty=ask --rebase-merges --onto commit' '
 	reset_rebase &&
 	git checkout -b rebase-merges-onto to-rebase &&
-	test_must_fail git rebase -Xsubtree=files_subtree --empty=ask --rebase-merges --onto files-master --root &&
+	test_must_fail git rebase -Xsubtree=files_subtree --empty=ask --rebase-merges --onto files-main --root &&
 	: first pick results in no changes &&
 	git rebase --skip &&
 	verbose test "$(commit_message HEAD~2)" = "topic_4" &&
t/t3430-rebase-merges.sh +9 -9
index 22d929bd31..6748070df5 100755
@@ -12,13 +12,13 @@ Initial setup:
 
     -- B --                   (first)
    /       \
- A - C - D - E - H            (master)
+ A - C - D - E - H            (main)
    \    \       /
     \    F - G                (second)
      \
       Conflicting-G
 '
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -40,7 +40,7 @@ test_expect_success 'setup' '
 	git checkout -b first &&
 	test_commit B &&
 	b=$(git rev-parse --short HEAD) &&
-	git checkout master &&
+	git checkout main &&
 	test_commit C &&
 	c=$(git rev-parse --short HEAD) &&
 	test_commit D &&
@@ -55,7 +55,7 @@ test_expect_success 'setup' '
 	f=$(git rev-parse --short HEAD) &&
 	test_commit G &&
 	g=$(git rev-parse --short HEAD) &&
-	git checkout master &&
+	git checkout main &&
 	git merge --no-commit G &&
 	test_tick &&
 	git commit -m H &&
@@ -85,7 +85,7 @@ test_expect_success 'create completely different structure' '
 	EOF
 	test_config sequence.editor \""$PWD"/replace-editor.sh\" &&
 	test_tick &&
-	git rebase -i -r A master &&
+	git rebase -i -r A main &&
 	test_cmp_graph <<-\EOF
 	*   Merge the topic branch '\''onebranch'\''
 	|\
@@ -186,7 +186,7 @@ test_expect_success 'fast-forward merge -c still rewords' '
 '
 
 test_expect_success 'with a branch tip that was cherry-picked already' '
-	git checkout -b already-upstream master &&
+	git checkout -b already-upstream main &&
 	base="$(git rev-parse --verify HEAD)" &&
 
 	test_commit A1 &&
@@ -214,7 +214,7 @@ test_expect_success 'with a branch tip that was cherry-picked already' '
 '
 
 test_expect_success 'do not rebase cousins unless asked for' '
-	git checkout -b cousins master &&
+	git checkout -b cousins main &&
 	before="$(git rev-parse --verify HEAD)" &&
 	test_tick &&
 	git rebase -r HEAD^ &&
@@ -343,7 +343,7 @@ test_expect_success 'a "merge" into a root commit is a fast-forward' '
 test_expect_success 'A root commit can be a cousin, treat it that way' '
 	git checkout --orphan khnum &&
 	test_commit yama &&
-	git checkout -b asherah master &&
+	git checkout -b asherah main &&
 	test_commit shamkat &&
 	git merge --allow-unrelated-histories khnum &&
 	test_tick &&
@@ -370,7 +370,7 @@ test_expect_success 'labels that are object IDs are rewritten' '
 	git checkout -b third B &&
 	test_commit I &&
 	third=$(git rev-parse HEAD) &&
-	git checkout -b labels master &&
+	git checkout -b labels main &&
 	git merge --no-commit third &&
 	test_tick &&
 	git commit -m "Merge commit '\''$third'\'' into labels" &&
t/t3431-rebase-fork-point.sh +17 -17
index af862e5bcc..2dab893c75 100755
@@ -5,16 +5,16 @@
 
 test_description='git rebase --fork-point test'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
 
-# A---B---D---E    (master)
+# A---B---D---E    (main)
 #      \
 #       C*---F---G (side)
 #
-# C was formerly part of master but master was rewound to remove C
+# C was formerly part of main but main was rewound to remove C
 #
 test_expect_success setup '
 	test_commit A &&
@@ -33,7 +33,7 @@ test_rebase () {
 	expected="$1" &&
 	shift &&
 	test_expect_success "git rebase $*" "
-		git checkout master &&
+		git checkout main &&
 		git reset --hard E &&
 		git checkout side &&
 		git reset --hard G &&
@@ -51,26 +51,26 @@ test_rebase 'G F C E D B A' --no-fork-point
 test_rebase 'G F C D B A' --no-fork-point --onto D
 test_rebase 'G F C B A' --no-fork-point --keep-base
 
-test_rebase 'G F E D B A' --fork-point refs/heads/master
-test_rebase 'G F E D B A' --fork-point master
+test_rebase 'G F E D B A' --fork-point refs/heads/main
+test_rebase 'G F E D B A' --fork-point main
 
-test_rebase 'G F D B A' --fork-point --onto D refs/heads/master
-test_rebase 'G F D B A' --fork-point --onto D master
+test_rebase 'G F D B A' --fork-point --onto D refs/heads/main
+test_rebase 'G F D B A' --fork-point --onto D main
 
-test_rebase 'G F B A' --fork-point --keep-base refs/heads/master
-test_rebase 'G F B A' --fork-point --keep-base master
+test_rebase 'G F B A' --fork-point --keep-base refs/heads/main
+test_rebase 'G F B A' --fork-point --keep-base main
 
-test_rebase 'G F C E D B A' refs/heads/master
-test_rebase 'G F C E D B A' master
+test_rebase 'G F C E D B A' refs/heads/main
+test_rebase 'G F C E D B A' main
 
-test_rebase 'G F C D B A' --onto D refs/heads/master
-test_rebase 'G F C D B A' --onto D master
+test_rebase 'G F C D B A' --onto D refs/heads/main
+test_rebase 'G F C D B A' --onto D main
 
-test_rebase 'G F C B A' --keep-base refs/heads/master
-test_rebase 'G F C B A' --keep-base master
+test_rebase 'G F C B A' --keep-base refs/heads/main
+test_rebase 'G F C B A' --keep-base main
 
 test_expect_success 'git rebase --fork-point with ambigous refname' '
-	git checkout master &&
+	git checkout main &&
 	git checkout -b one &&
 	git checkout side &&
 	git tag one &&
t/t3432-rebase-fast-forward.sh +18 -18
index 112a18d630..5086e14c02 100755
@@ -5,7 +5,7 @@
 
 test_description='ensure rebase fast-forwards commits when possible'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -87,19 +87,19 @@ test_rebase_same_head_ () {
 
 changes='no changes'
 test_rebase_same_head success noop same success work same
-test_rebase_same_head success noop same success work same master
+test_rebase_same_head success noop same success work same main
 test_rebase_same_head success noop same success work diff --onto B B
 test_rebase_same_head success noop same success work diff --onto B... B
-test_rebase_same_head success noop same success work same --onto master... master
-test_rebase_same_head success noop same success work same --keep-base master
+test_rebase_same_head success noop same success work same --onto main... main
+test_rebase_same_head success noop same success work same --keep-base main
 test_rebase_same_head success noop same success work same --keep-base
 test_rebase_same_head success noop same success work same --no-fork-point
 test_rebase_same_head success noop same success work same --keep-base --no-fork-point
-test_rebase_same_head success noop same success work same --fork-point master
+test_rebase_same_head success noop same success work same --fork-point main
 test_rebase_same_head success noop same success work diff --fork-point --onto B B
 test_rebase_same_head success noop same success work diff --fork-point --onto B... B
-test_rebase_same_head success noop same success work same --fork-point --onto master... master
-test_rebase_same_head success noop same success work same --keep-base --keep-base master
+test_rebase_same_head success noop same success work same --fork-point --onto main... main
+test_rebase_same_head success noop same success work same --keep-base --keep-base main
 
 test_expect_success 'add work same to side' '
 	test_commit E
@@ -107,22 +107,22 @@ test_expect_success 'add work same to side' '
 
 changes='our changes'
 test_rebase_same_head success noop same success work same
-test_rebase_same_head success noop same success work same master
+test_rebase_same_head success noop same success work same main
 test_rebase_same_head success noop same success work diff --onto B B
 test_rebase_same_head success noop same success work diff --onto B... B
-test_rebase_same_head success noop same success work same --onto master... master
-test_rebase_same_head success noop same success work same --keep-base master
+test_rebase_same_head success noop same success work same --onto main... main
+test_rebase_same_head success noop same success work same --keep-base main
 test_rebase_same_head success noop same success work same --keep-base
 test_rebase_same_head success noop same success work same --no-fork-point
 test_rebase_same_head success noop same success work same --keep-base --no-fork-point
-test_rebase_same_head success noop same success work same --fork-point master
+test_rebase_same_head success noop same success work same --fork-point main
 test_rebase_same_head success noop same success work diff --fork-point --onto B B
 test_rebase_same_head success noop same success work diff --fork-point --onto B... B
-test_rebase_same_head success noop same success work same --fork-point --onto master... master
-test_rebase_same_head success noop same success work same --fork-point --keep-base master
+test_rebase_same_head success noop same success work same --fork-point --onto main... main
+test_rebase_same_head success noop same success work same --fork-point --keep-base main
 
 test_expect_success 'add work same to upstream' '
-	git checkout master &&
+	git checkout main &&
 	test_commit F &&
 	git checkout side
 '
@@ -130,12 +130,12 @@ test_expect_success 'add work same to upstream' '
 changes='our and their changes'
 test_rebase_same_head success noop same success work diff --onto B B
 test_rebase_same_head success noop same success work diff --onto B... B
-test_rebase_same_head success noop same success work diff --onto master... master
-test_rebase_same_head success noop same success work diff --keep-base master
+test_rebase_same_head success noop same success work diff --onto main... main
+test_rebase_same_head success noop same success work diff --keep-base main
 test_rebase_same_head success noop same success work diff --keep-base
 test_rebase_same_head failure work same success work diff --fork-point --onto B B
 test_rebase_same_head failure work same success work diff --fork-point --onto B... B
-test_rebase_same_head success noop same success work diff --fork-point --onto master... master
-test_rebase_same_head success noop same success work diff --fork-point --keep-base master
+test_rebase_same_head success noop same success work diff --fork-point --onto main... main
+test_rebase_same_head success noop same success work diff --fork-point --keep-base main
 
 test_done
t/t3434-rebase-i18n.sh +5 -5
index 26fd33cbed..e6fef696bb 100755
@@ -7,14 +7,14 @@ test_description='rebase with changing encoding
 
 Initial setup:
 
-1 - 2              master
+1 - 2              main
  \
   3 - 4            first
    \
     5 - 6          second
 '
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -44,7 +44,7 @@ test_expect_success 'rebase --rebase-merges update encoding eucJP to UTF-8' '
 	git config i18n.commitencoding eucJP &&
 	git merge -F "$TEST_DIRECTORY/t3434/eucJP.txt" second &&
 	git config i18n.commitencoding UTF-8 &&
-	git rebase --rebase-merges master &&
+	git rebase --rebase-merges main &&
 	compare_msg eucJP.txt eucJP UTF-8
 '
 
@@ -53,7 +53,7 @@ test_expect_success 'rebase --rebase-merges update encoding eucJP to ISO-2022-JP
 	git config i18n.commitencoding eucJP &&
 	git merge -F "$TEST_DIRECTORY/t3434/eucJP.txt" second &&
 	git config i18n.commitencoding ISO-2022-JP &&
-	git rebase --rebase-merges master &&
+	git rebase --rebase-merges main &&
 	compare_msg eucJP.txt eucJP ISO-2022-JP
 '
 
@@ -69,7 +69,7 @@ test_rebase_continue_update_encode () {
 		git config i18n.commitencoding $old &&
 		git commit -F "$TEST_DIRECTORY/t3434/$msgfile" &&
 		git config i18n.commitencoding $new &&
-		test_must_fail git rebase -m master &&
+		test_must_fail git rebase -m main &&
 		test -f .git/rebase-merge/message &&
 		git stripspace <.git/rebase-merge/message >two.t &&
 		git add two.t &&
t/t3435-rebase-gpg-sign.sh +3 -3
index d169bc511d..ec10766858 100755
@@ -5,7 +5,7 @@
 
 test_description='test rebase --[no-]gpg-sign'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -49,7 +49,7 @@ test_expect_success 'setup: merge commit' '
 	test_commit fork-point &&
 	git switch -c side &&
 	test_commit three &&
-	git switch master &&
+	git switch main &&
 	git merge --no-ff side &&
 	git tag merged
 '
@@ -67,7 +67,7 @@ test_rebase_gpg_sign   false -i --no-gpg-sign --gpg-sign
 test_expect_failure 'rebase -p --no-gpg-sign override commit.gpgsign' '
 	git reset --hard merged &&
 	git config commit.gpgsign true &&
-	git rebase -p --no-gpg-sign --onto=one fork-point master &&
+	git rebase -p --no-gpg-sign --onto=one fork-point main &&
 	test_must_fail git verify-commit HEAD
 '
 
t/t3436-rebase-more-options.sh +1 -1
index eaaf4c8d1d..4d106642ba 100755
@@ -28,7 +28,7 @@ test_expect_success 'setup' '
 	test_commit commit2 foo foo2 &&
 	test_commit commit3 foo foo3 &&
 
-	git checkout --orphan master &&
+	git checkout --orphan main &&
 	rm foo &&
 	test_write_lines "line 1" "        line 2" "line 3" >file &&
 	git commit -am "add file" &&
Signature · 1 line
gitgitgadget
#103 lore raw

PATCH v3 10/28 t5323: prepare centered comment for `master` -> `main`

In reply to Johannes Schindelin via GitGitGadget

From: Johannes Schindelin <[email protected]>

We are about to search-and-replace all mentions of master in t5323 by main, which is two characters shorter. To prepare for that, let's add padding to centered lines that will make them briefly uncentered, but will be re-centered in the commit that performs that rename.

Doing it this way (instead of padding after replacing) makes it easier to verify the validity of the patch that replaces master by main.

---
 t/t5323-pack-redundant.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
t/t5323-pack-redundant.sh +3 -3
index 6b4d1ca353..3903148926 100755
@@ -312,7 +312,7 @@ test_expect_success 'shared: all packs are redundant, but no output without --al
 #############################################################################
 # Chart of packs and objects for this test case
 #
-#     ================ master.git ===============
+#     ================= master.git ================
 #         | T A B C D E F G H I J K L M N O P Q R  <----------+
 #     ----+--------------------------------------             |
 #     P1  | x x x x x x x                       x             |
@@ -394,7 +394,7 @@ test_expect_success 'shared: no redundant without --alt-odb' '
 #############################################################################
 # Chart of packs and objects for this test case
 #
-#     ================ master.git ===============
+#     ================= master.git ================
 #         | T A B C D E F G H I J K L M N O P Q R  <----------------+
 #     ----+--------------------------------------                   |
 #     P1  | x x x x x x x                       x                   |
@@ -426,7 +426,7 @@ test_expect_success 'shared: one pack is redundant with --alt-odb' '
 #############################################################################
 # Chart of packs and objects for this test case
 #
-#     ================ master.git ===============
+#     ================= master.git ================
 #         | T A B C D E F G H I J K L M N O P Q R  <----------------+
 #     ----+--------------------------------------                   |
 #     P1  | x x x x x x x                       x                   |
Signature · 1 line
gitgitgadget
#98 lore raw

PATCH v3 5/28 t3[0-3]*: adjust the references to the default branch name "main"

In reply to Johannes Schindelin via GitGitGadget

From: Johannes Schindelin <[email protected]>

Carefully excluding t3040, which sees independent development elsewhere at the time of writing, we transition above-mentioned tests to the default branch name main. This trick was performed via

	$ (cd t &&
	   sed -i -e 's/master/main/g' -e 's/MASTER/MAIN/g' \
		-e 's/Master/Main/g' -- t3[0-3]*.sh t3206/* &&
	   git checkout HEAD -- t3040\*)

This allows us to define GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main for those tests.

---
 t/t3200-branch.sh                     | 244 +++++++++++++-------------
 t/t3201-branch-contains.sh            |  82 ++++-----
 t/t3202-show-branch-octopus.sh        |   4 +-
 t/t3203-branch-output.sh              |  40 ++---
 t/t3204-branch-name-interpretation.sh |   8 +-
 t/t3205-branch-color.sh               |   8 +-
 t/t3206-range-diff.sh                 |  42 ++---
 t/t3206/history.export                |   2 +-
 t/t3210-pack-refs.sh                  |   6 +-
 t/t3211-peel-ref.sh                   |   6 +-
 t/t3301-notes.sh                      |   6 +-
 t/t3302-notes-index-expensive.sh      |   4 +-
 t/t3303-notes-subtrees.sh             |  10 +-
 t/t3304-notes-mixed.sh                |  10 +-
 t/t3308-notes-merge.sh                |   2 +-
 t/t3320-notes-merge-worktrees.sh      |   6 +-
 16 files changed, 240 insertions(+), 240 deletions(-)
t/t3200-branch.sh +122 -122
index 04b568cf21..56517dd9c3 100755
@@ -5,7 +5,7 @@
 
 test_description='git branch assorted tests'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -31,7 +31,7 @@ test_expect_success 'branch -h in broken repository' '
 	(
 		cd broken &&
 		git init &&
-		>.git/refs/heads/master &&
+		>.git/refs/heads/main &&
 		test_expect_code 129 git branch -h >usage 2>&1
 	) &&
 	test_i18ngrep "[Uu]sage" broken/usage
@@ -45,8 +45,8 @@ test_expect_success 'git branch a/b/c should create a branch' '
 	git branch a/b/c && test_path_is_file .git/refs/heads/a/b/c
 '
 
-test_expect_success 'git branch mb master... should create a branch' '
-	git branch mb master... && test_path_is_file .git/refs/heads/mb
+test_expect_success 'git branch mb main... should create a branch' '
+	git branch mb main... && test_path_is_file .git/refs/heads/mb
 '
 
 test_expect_success 'git branch HEAD should fail' '
@@ -54,7 +54,7 @@ test_expect_success 'git branch HEAD should fail' '
 '
 
 cat >expect <<EOF
-$ZERO_OID $HEAD $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> 1117150200 +0000	branch: Created from master
+$ZERO_OID $HEAD $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> 1117150200 +0000	branch: Created from main
 EOF
 test_expect_success 'git branch --create-reflog d/e/f should create a branch and a log' '
 	GIT_COMMITTER_DATE="2005-05-26 23:30" \
@@ -113,7 +113,7 @@ test_expect_success 'git branch -m n/n n should work' '
 
 test_expect_success 'git branch -m bbb should rename checked out branch' '
 	test_when_finished git branch -D bbb &&
-	test_when_finished git checkout master &&
+	test_when_finished git checkout main &&
 	git checkout -b aaa &&
 	git commit --allow-empty -m "a new commit" &&
 	git rev-parse aaa@{0} >expect &&
@@ -127,7 +127,7 @@ test_expect_success 'git branch -m bbb should rename checked out branch' '
 
 test_expect_success 'renaming checked out branch works with d/f conflict' '
 	test_when_finished "git branch -D foo/bar || git branch -D foo" &&
-	test_when_finished git checkout master &&
+	test_when_finished git checkout main &&
 	git checkout -b foo &&
 	git branch -m foo/bar &&
 	git symbolic-ref HEAD >actual &&
@@ -188,7 +188,7 @@ test_expect_success 'git branch -M should leave orphaned HEAD alone' '
 		git checkout --orphan lonely &&
 		grep lonely .git/HEAD &&
 		test_path_is_missing .git/refs/head/lonely &&
-		git branch -M master mistress &&
+		git branch -M main mistress &&
 		grep lonely .git/HEAD
 	)
 '
@@ -204,7 +204,7 @@ test_expect_success 'resulting reflog can be shown by log -g' '
 '
 
 test_expect_success 'git branch -M baz bam should succeed when baz is checked out as linked working tree' '
-	git checkout master &&
+	git checkout main &&
 	git worktree add -b baz bazdir &&
 	git worktree add -f bazdir2 baz &&
 	git branch -M baz bam &&
@@ -227,18 +227,18 @@ test_expect_success 'git branch -M baz bam should succeed within a worktree in w
 	git worktree prune
 '
 
-test_expect_success 'git branch -M master should work when master is checked out' '
-	git checkout master &&
-	git branch -M master
+test_expect_success 'git branch -M main should work when main is checked out' '
+	git checkout main &&
+	git branch -M main
 '
 
-test_expect_success 'git branch -M master master should work when master is checked out' '
-	git checkout master &&
-	git branch -M master master
+test_expect_success 'git branch -M main main should work when main is checked out' '
+	git checkout main &&
+	git branch -M main main
 '
 
-test_expect_success 'git branch -M topic topic should work when master is checked out' '
-	git checkout master &&
+test_expect_success 'git branch -M topic topic should work when main is checked out' '
+	git checkout main &&
 	git branch topic &&
 	git branch -M topic topic
 '
@@ -295,8 +295,8 @@ test_expect_success 'bare main worktree has HEAD at branch deleted by secondary
 	git init nonbare &&
 	test_commit -C nonbare x &&
 	git clone --bare nonbare bare &&
-	git -C bare worktree add --detach ../secondary master &&
-	git -C secondary branch -D master
+	git -C bare worktree add --detach ../secondary main &&
+	git -C secondary branch -D main
 '
 
 test_expect_success 'git branch --list -v with --abbrev' '
@@ -348,7 +348,7 @@ test_expect_success 'git branch --column with an extremely long branch name' '
   j/k
   l
   m/m
-* master
+* main
   mb
   n
   o/o
@@ -391,7 +391,7 @@ test_expect_success PREPARE_FOR_MAIN_BRANCH 'git branch -v with column.ui ignore
   j/k
   l
   m/m
-* master
+* main
   mb
   n
   o/o
@@ -430,8 +430,8 @@ test_expect_success 'config information was renamed, too' '
 '
 
 test_expect_success 'git branch -m correctly renames multiple config sections' '
-	test_when_finished "git checkout master" &&
-	git checkout -b source master &&
+	test_when_finished "git checkout main" &&
+	git checkout -b source main &&
 
 	# Assert that a config file with multiple config sections has
 	# those sections preserved...
@@ -590,18 +590,18 @@ test_expect_success 'git branch -C c1 c2 should never touch HEAD' '
 	! grep "$msg$" .git/logs/HEAD
 '
 
-test_expect_success 'git branch -C master should work when master is checked out' '
-	git checkout master &&
-	git branch -C master
+test_expect_success 'git branch -C main should work when main is checked out' '
+	git checkout main &&
+	git branch -C main
 '
 
-test_expect_success 'git branch -C master master should work when master is checked out' '
-	git checkout master &&
-	git branch -C master master
+test_expect_success 'git branch -C main main should work when main is checked out' '
+	git checkout main &&
+	git branch -C main main
 '
 
-test_expect_success 'git branch -C main5 main5 should work when master is checked out' '
-	git checkout master &&
+test_expect_success 'git branch -C main5 main5 should work when main is checked out' '
+	git checkout main &&
 	git branch main5 &&
 	git branch -C main5 main5
 '
@@ -623,8 +623,8 @@ test_expect_success 'git branch -C ab cd should overwrite existing config for cd
 test_expect_success 'git branch -c correctly copies multiple config sections' '
 	FOO=1 &&
 	export FOO &&
-	test_when_finished "git checkout master" &&
-	git checkout -b source2 master &&
+	test_when_finished "git checkout main" &&
+	git checkout -b source2 main &&
 
 	# Assert that a config file with multiple config sections has
 	# those sections preserved...
@@ -714,10 +714,10 @@ test_expect_success 'deleting a self-referential symref' '
 '
 
 test_expect_success 'renaming a symref is not allowed' '
-	git symbolic-ref refs/heads/topic refs/heads/master &&
+	git symbolic-ref refs/heads/topic refs/heads/main &&
 	test_must_fail git branch -m topic new-topic &&
 	git symbolic-ref refs/heads/topic &&
-	test_path_is_file .git/refs/heads/master &&
+	test_path_is_file .git/refs/heads/main &&
 	test_path_is_missing .git/refs/heads/new-topic
 '
 
@@ -731,27 +731,27 @@ test_expect_success SYMLINKS 'git branch -m u v should fail when the reflog for
 test_expect_success 'test tracking setup via --track' '
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
-	git branch --track my1 local/master &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
+	git branch --track my1 local/main &&
 	test $(git config branch.my1.remote) = local &&
-	test $(git config branch.my1.merge) = refs/heads/master
+	test $(git config branch.my1.merge) = refs/heads/main
 '
 
 test_expect_success 'test tracking setup (non-wildcard, matching)' '
 	git config remote.local.url . &&
-	git config remote.local.fetch refs/heads/master:refs/remotes/local/master &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
-	git branch --track my4 local/master &&
+	git config remote.local.fetch refs/heads/main:refs/remotes/local/main &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
+	git branch --track my4 local/main &&
 	test $(git config branch.my4.remote) = local &&
-	test $(git config branch.my4.merge) = refs/heads/master
+	test $(git config branch.my4.merge) = refs/heads/main
 '
 
 test_expect_success 'tracking setup fails on non-matching refspec' '
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
 	git config remote.local.fetch refs/heads/s:refs/remotes/local/s &&
-	test_must_fail git branch --track my5 local/master &&
+	test_must_fail git branch --track my5 local/main &&
 	test_must_fail git config branch.my5.remote &&
 	test_must_fail git config branch.my5.merge
 '
@@ -760,21 +760,21 @@ test_expect_success 'test tracking setup via config' '
 	git config branch.autosetupmerge true &&
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
-	git branch my3 local/master &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
+	git branch my3 local/main &&
 	test $(git config branch.my3.remote) = local &&
-	test $(git config branch.my3.merge) = refs/heads/master
+	test $(git config branch.my3.merge) = refs/heads/main
 '
 
 test_expect_success 'test overriding tracking setup via --no-track' '
 	git config branch.autosetupmerge true &&
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
-	git branch --no-track my2 local/master &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
+	git branch --no-track my2 local/main &&
 	git config branch.autosetupmerge false &&
 	! test "$(git config branch.my2.remote)" = local &&
-	! test "$(git config branch.my2.merge)" = refs/heads/master
+	! test "$(git config branch.my2.merge)" = refs/heads/main
 '
 
 test_expect_success 'no tracking without .fetch entries' '
@@ -839,26 +839,26 @@ test_expect_success 'branch from tag w/--track causes failure' '
 
 test_expect_success '--set-upstream-to fails on multiple branches' '
 	echo "fatal: too many arguments to set new upstream" >expect &&
-	test_must_fail git branch --set-upstream-to master a b c 2>err &&
+	test_must_fail git branch --set-upstream-to main a b c 2>err &&
 	test_i18ncmp expect err
 '
 
 test_expect_success '--set-upstream-to fails on detached HEAD' '
 	git checkout HEAD^{} &&
 	test_when_finished git checkout - &&
-	echo "fatal: could not set upstream of HEAD to master when it does not point to any branch." >expect &&
-	test_must_fail git branch --set-upstream-to master 2>err &&
+	echo "fatal: could not set upstream of HEAD to main when it does not point to any branch." >expect &&
+	test_must_fail git branch --set-upstream-to main 2>err &&
 	test_i18ncmp expect err
 '
 
 test_expect_success '--set-upstream-to fails on a missing dst branch' '
 	echo "fatal: branch '"'"'does-not-exist'"'"' does not exist" >expect &&
-	test_must_fail git branch --set-upstream-to master does-not-exist 2>err &&
+	test_must_fail git branch --set-upstream-to main does-not-exist 2>err &&
 	test_i18ncmp expect err
 '
 
 test_expect_success '--set-upstream-to fails on a missing src branch' '
-	test_must_fail git branch --set-upstream-to does-not-exist master 2>err &&
+	test_must_fail git branch --set-upstream-to does-not-exist main 2>err &&
 	test_i18ngrep "the requested upstream branch '"'"'does-not-exist'"'"' does not exist" err
 '
 
@@ -877,20 +877,20 @@ test_expect_success '--set-upstream-to fails on locked config' '
 '
 
 test_expect_success 'use --set-upstream-to modify HEAD' '
-	test_config branch.master.remote foo &&
-	test_config branch.master.merge foo &&
+	test_config branch.main.remote foo &&
+	test_config branch.main.merge foo &&
 	git branch my12 &&
 	git branch --set-upstream-to my12 &&
-	test "$(git config branch.master.remote)" = "." &&
-	test "$(git config branch.master.merge)" = "refs/heads/my12"
+	test "$(git config branch.main.remote)" = "." &&
+	test "$(git config branch.main.merge)" = "refs/heads/my12"
 '
 
 test_expect_success 'use --set-upstream-to modify a particular branch' '
 	git branch my13 &&
-	git branch --set-upstream-to master my13 &&
+	git branch --set-upstream-to main my13 &&
 	test_when_finished "git branch --unset-upstream my13" &&
 	test "$(git config branch.my13.remote)" = "." &&
-	test "$(git config branch.my13.merge)" = "refs/heads/master"
+	test "$(git config branch.my13.merge)" = "refs/heads/main"
 '
 
 test_expect_success '--unset-upstream should fail if given a non-existent branch' '
@@ -909,14 +909,14 @@ test_expect_success '--unset-upstream should fail if config is locked' '
 
 test_expect_success 'test --unset-upstream on HEAD' '
 	git branch my14 &&
-	test_config branch.master.remote foo &&
-	test_config branch.master.merge foo &&
+	test_config branch.main.remote foo &&
+	test_config branch.main.merge foo &&
 	git branch --set-upstream-to my14 &&
 	git branch --unset-upstream &&
-	test_must_fail git config branch.master.remote &&
-	test_must_fail git config branch.master.merge &&
+	test_must_fail git config branch.main.remote &&
+	test_must_fail git config branch.main.merge &&
 	# fail for a branch without upstream set
-	echo "fatal: Branch '"'"'master'"'"' has no upstream information" >expect &&
+	echo "fatal: Branch '"'"'main'"'"' has no upstream information" >expect &&
 	test_must_fail git branch --unset-upstream 2>err &&
 	test_i18ncmp expect err
 '
@@ -937,14 +937,14 @@ test_expect_success '--unset-upstream should fail on detached HEAD' '
 
 test_expect_success 'test --unset-upstream on a particular branch' '
 	git branch my15 &&
-	git branch --set-upstream-to master my14 &&
+	git branch --set-upstream-to main my14 &&
 	git branch --unset-upstream my14 &&
 	test_must_fail git config branch.my14.remote &&
 	test_must_fail git config branch.my14.merge
 '
 
 test_expect_success 'disabled option --set-upstream fails' '
-	test_must_fail git branch --set-upstream origin/master
+	test_must_fail git branch --set-upstream origin/main
 '
 
 test_expect_success '--set-upstream-to notices an error to set branch as own upstream' '
@@ -959,32 +959,32 @@ test_expect_success '--set-upstream-to notices an error to set branch as own ups
 
 # Keep this test last, as it changes the current branch
 cat >expect <<EOF
-$ZERO_OID $HEAD $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> 1117150200 +0000	branch: Created from master
+$ZERO_OID $HEAD $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> 1117150200 +0000	branch: Created from main
 EOF
 test_expect_success 'git checkout -b g/h/i -l should create a branch and a log' '
 	GIT_COMMITTER_DATE="2005-05-26 23:30" \
-	git checkout -b g/h/i -l master &&
+	git checkout -b g/h/i -l main &&
 	test_path_is_file .git/refs/heads/g/h/i &&
 	test_path_is_file .git/logs/refs/heads/g/h/i &&
 	test_cmp expect .git/logs/refs/heads/g/h/i
 '
 
 test_expect_success 'checkout -b makes reflog by default' '
-	git checkout master &&
+	git checkout main &&
 	git config --unset core.logAllRefUpdates &&
 	git checkout -b alpha &&
 	git rev-parse --verify alpha@{0}
 '
 
 test_expect_success 'checkout -b does not make reflog when core.logAllRefUpdates = false' '
-	git checkout master &&
+	git checkout main &&
 	git config core.logAllRefUpdates false &&
 	git checkout -b beta &&
 	test_must_fail git rev-parse --verify beta@{0}
 '
 
 test_expect_success 'checkout -b with -l makes reflog when core.logAllRefUpdates = false' '
-	git checkout master &&
+	git checkout main &&
 	git checkout -lb gamma &&
 	git config --unset core.logAllRefUpdates &&
 	git rev-parse --verify gamma@{0}
@@ -993,10 +993,10 @@ test_expect_success 'checkout -b with -l makes reflog when core.logAllRefUpdates
 test_expect_success 'avoid ambiguous track' '
 	git config branch.autosetupmerge true &&
 	git config remote.ambi1.url lalala &&
-	git config remote.ambi1.fetch refs/heads/lalala:refs/heads/master &&
+	git config remote.ambi1.fetch refs/heads/lalala:refs/heads/main &&
 	git config remote.ambi2.url lilili &&
-	git config remote.ambi2.fetch refs/heads/lilili:refs/heads/master &&
-	test_must_fail git branch all1 master &&
+	git config remote.ambi2.fetch refs/heads/lilili:refs/heads/main &&
+	test_must_fail git branch all1 main &&
 	test -z "$(git config branch.all1.merge)"
 '
 
@@ -1052,10 +1052,10 @@ test_expect_success 'autosetuprebase local on a tracked remote branch' '
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
 	git config branch.autosetuprebase local &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
-	git branch --track myr5 local/master &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
+	git branch --track myr5 local/main &&
 	test "$(git config branch.myr5.remote)" = local &&
-	test "$(git config branch.myr5.merge)" = refs/heads/master &&
+	test "$(git config branch.myr5.merge)" = refs/heads/main &&
 	! test "$(git config branch.myr5.rebase)" = true
 '
 
@@ -1063,10 +1063,10 @@ test_expect_success 'autosetuprebase never on a tracked remote branch' '
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
 	git config branch.autosetuprebase never &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
-	git branch --track myr6 local/master &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
+	git branch --track myr6 local/main &&
 	test "$(git config branch.myr6.remote)" = local &&
-	test "$(git config branch.myr6.merge)" = refs/heads/master &&
+	test "$(git config branch.myr6.merge)" = refs/heads/main &&
 	! test "$(git config branch.myr6.rebase)" = true
 '
 
@@ -1074,10 +1074,10 @@ test_expect_success 'autosetuprebase remote on a tracked remote branch' '
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
 	git config branch.autosetuprebase remote &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
-	git branch --track myr7 local/master &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
+	git branch --track myr7 local/main &&
 	test "$(git config branch.myr7.remote)" = local &&
-	test "$(git config branch.myr7.merge)" = refs/heads/master &&
+	test "$(git config branch.myr7.merge)" = refs/heads/main &&
 	test "$(git config branch.myr7.rebase)" = true
 '
 
@@ -1085,10 +1085,10 @@ test_expect_success 'autosetuprebase always on a tracked remote branch' '
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
 	git config branch.autosetuprebase remote &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
-	git branch --track myr8 local/master &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
+	git branch --track myr8 local/main &&
 	test "$(git config branch.myr8.remote)" = local &&
-	test "$(git config branch.myr8.merge)" = refs/heads/master &&
+	test "$(git config branch.myr8.merge)" = refs/heads/main &&
 	test "$(git config branch.myr8.rebase)" = true
 '
 
@@ -1096,10 +1096,10 @@ test_expect_success 'autosetuprebase unconfigured on a tracked remote branch' '
 	git config --unset branch.autosetuprebase &&
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
-	git branch --track myr9 local/master &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
+	git branch --track myr9 local/main &&
 	test "$(git config branch.myr9.remote)" = local &&
-	test "$(git config branch.myr9.merge)" = refs/heads/master &&
+	test "$(git config branch.myr9.merge)" = refs/heads/main &&
 	test "z$(git config branch.myr9.rebase)" = z
 '
 
@@ -1117,7 +1117,7 @@ test_expect_success 'autosetuprebase unconfigured on a tracked local branch' '
 test_expect_success 'autosetuprebase unconfigured on untracked local branch' '
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
 	git branch --no-track myr11 mybase2 &&
 	test "z$(git config branch.myr11.remote)" = z &&
 	test "z$(git config branch.myr11.merge)" = z &&
@@ -1127,8 +1127,8 @@ test_expect_success 'autosetuprebase unconfigured on untracked local branch' '
 test_expect_success 'autosetuprebase unconfigured on untracked remote branch' '
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
-	git branch --no-track myr12 local/master &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
+	git branch --no-track myr12 local/main &&
 	test "z$(git config branch.myr12.remote)" = z &&
 	test "z$(git config branch.myr12.merge)" = z &&
 	test "z$(git config branch.myr12.rebase)" = z
@@ -1138,7 +1138,7 @@ test_expect_success 'autosetuprebase never on an untracked local branch' '
 	git config branch.autosetuprebase never &&
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
 	git branch --no-track myr13 mybase2 &&
 	test "z$(git config branch.myr13.remote)" = z &&
 	test "z$(git config branch.myr13.merge)" = z &&
@@ -1149,7 +1149,7 @@ test_expect_success 'autosetuprebase local on an untracked local branch' '
 	git config branch.autosetuprebase local &&
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
 	git branch --no-track myr14 mybase2 &&
 	test "z$(git config branch.myr14.remote)" = z &&
 	test "z$(git config branch.myr14.merge)" = z &&
@@ -1160,7 +1160,7 @@ test_expect_success 'autosetuprebase remote on an untracked local branch' '
 	git config branch.autosetuprebase remote &&
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
 	git branch --no-track myr15 mybase2 &&
 	test "z$(git config branch.myr15.remote)" = z &&
 	test "z$(git config branch.myr15.merge)" = z &&
@@ -1171,7 +1171,7 @@ test_expect_success 'autosetuprebase always on an untracked local branch' '
 	git config branch.autosetuprebase always &&
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
 	git branch --no-track myr16 mybase2 &&
 	test "z$(git config branch.myr16.remote)" = z &&
 	test "z$(git config branch.myr16.merge)" = z &&
@@ -1182,8 +1182,8 @@ test_expect_success 'autosetuprebase never on an untracked remote branch' '
 	git config branch.autosetuprebase never &&
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
-	git branch --no-track myr17 local/master &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
+	git branch --no-track myr17 local/main &&
 	test "z$(git config branch.myr17.remote)" = z &&
 	test "z$(git config branch.myr17.merge)" = z &&
 	test "z$(git config branch.myr17.rebase)" = z
@@ -1193,8 +1193,8 @@ test_expect_success 'autosetuprebase local on an untracked remote branch' '
 	git config branch.autosetuprebase local &&
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
-	git branch --no-track myr18 local/master &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
+	git branch --no-track myr18 local/main &&
 	test "z$(git config branch.myr18.remote)" = z &&
 	test "z$(git config branch.myr18.merge)" = z &&
 	test "z$(git config branch.myr18.rebase)" = z
@@ -1204,8 +1204,8 @@ test_expect_success 'autosetuprebase remote on an untracked remote branch' '
 	git config branch.autosetuprebase remote &&
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
-	git branch --no-track myr19 local/master &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
+	git branch --no-track myr19 local/main &&
 	test "z$(git config branch.myr19.remote)" = z &&
 	test "z$(git config branch.myr19.merge)" = z &&
 	test "z$(git config branch.myr19.rebase)" = z
@@ -1215,8 +1215,8 @@ test_expect_success 'autosetuprebase always on an untracked remote branch' '
 	git config branch.autosetuprebase always &&
 	git config remote.local.url . &&
 	git config remote.local.fetch refs/heads/*:refs/remotes/local/* &&
-	(git show-ref -q refs/remotes/local/master || git fetch local) &&
-	git branch --no-track myr20 local/master &&
+	(git show-ref -q refs/remotes/local/main || git fetch local) &&
+	git branch --no-track myr20 local/main &&
 	test "z$(git config branch.myr20.remote)" = z &&
 	test "z$(git config branch.myr20.merge)" = z &&
 	test "z$(git config branch.myr20.rebase)" = z
@@ -1224,7 +1224,7 @@ test_expect_success 'autosetuprebase always on an untracked remote branch' '
 
 test_expect_success 'autosetuprebase always on detached HEAD' '
 	git config branch.autosetupmerge always &&
-	test_when_finished git checkout master &&
+	test_when_finished git checkout main &&
 	git checkout HEAD^0 &&
 	git branch my11 &&
 	test -z "$(git config branch.my11.remote)" &&
@@ -1252,18 +1252,18 @@ test_expect_success 'attempt to delete a branch without base and unmerged to HEA
 test_expect_success 'attempt to delete a branch merged to its base' '
 	# we are on my9 which is the initial commit; traditionally
 	# we would not have allowed deleting my8 that is not merged
-	# to my9, but it is set to track master that already has my8
-	git config branch.my8.merge refs/heads/master &&
+	# to my9, but it is set to track main that already has my8
+	git config branch.my8.merge refs/heads/main &&
 	git branch -d my8
 '
 
 test_expect_success 'attempt to delete a branch merged to its base' '
-	git checkout master &&
+	git checkout main &&
 	echo Third >>A &&
 	git commit -m "Third commit" A &&
 	git branch -t my10 my9 &&
 	git branch -f my10 HEAD^ &&
-	# we are on master which is at the third commit, and my10
+	# we are on main which is at the third commit, and my10
 	# is behind us, so traditionally we would have allowed deleting
 	# it; but my10 is set to track my9 that is further behind.
 	test_must_fail git branch -d my10
@@ -1290,7 +1290,7 @@ test_expect_success 'detect typo in branch name when using --edit-description' '
 '
 
 test_expect_success 'refuse --edit-description on unborn branch for now' '
-	test_when_finished "git checkout master" &&
+	test_when_finished "git checkout main" &&
 	write_script editor <<-\EOF &&
 		echo "New contents" >"$1"
 	EOF
@@ -1304,18 +1304,18 @@ test_expect_success '--merged catches invalid object names' '
 
 test_expect_success '--list during rebase' '
 	test_when_finished "reset_rebase" &&
-	git checkout master &&
+	git checkout main &&
 	FAKE_LINES="1 edit 2" &&
 	export FAKE_LINES &&
 	set_fake_editor &&
 	git rebase -i HEAD~2 &&
 	git branch --list >actual &&
-	test_i18ngrep "rebasing master" actual
+	test_i18ngrep "rebasing main" actual
 '
 
 test_expect_success '--list during rebase from detached HEAD' '
-	test_when_finished "reset_rebase && git checkout master" &&
-	git checkout master^0 &&
+	test_when_finished "reset_rebase && git checkout main" &&
+	git checkout main^0 &&
 	oid=$(git rev-parse --short HEAD) &&
 	FAKE_LINES="1 edit 2" &&
 	export FAKE_LINES &&
@@ -1351,11 +1351,11 @@ test_expect_success 'tracking with unexpected .fetch refspec' '
 		git remote add c ../c &&
 		git config remote.c.fetch "+refs/remotes/*:refs/remotes/*" &&
 		git fetch c &&
-		git branch --track local/a/master remotes/a/master &&
-		test "$(git config branch.local/a/master.remote)" = "c" &&
-		test "$(git config branch.local/a/master.merge)" = "refs/remotes/a/master" &&
+		git branch --track local/a/main remotes/a/main &&
+		test "$(git config branch.local/a/main.remote)" = "c" &&
+		test "$(git config branch.local/a/main.merge)" = "refs/remotes/a/main" &&
 		git rev-parse --verify a >expect &&
-		git rev-parse --verify local/a/master >actual &&
+		git rev-parse --verify local/a/main >actual &&
 		test_cmp expect actual
 	)
 '
@@ -1374,7 +1374,7 @@ test_expect_success 'configured committerdate sort' '
 		test_commit b &&
 		git branch >actual &&
 		cat >expect <<-\EOF &&
-		  master
+		  main
 		  a
 		  c
 		* b
@@ -1392,7 +1392,7 @@ test_expect_success 'option override configured sort' '
 		  a
 		* b
 		  c
-		  master
+		  main
 		EOF
 		test_cmp expect actual
 	)
t/t3201-branch-contains.sh +41 -41

231 lines not on this page · raw message

t/t3202-show-branch-octopus.sh +2 -2
index bbf7129dd8..5cb0126cfe 100755
@@ -2,7 +2,7 @@
 
 test_description='test show-branch with more than 8 heads'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -18,7 +18,7 @@ test_expect_success 'setup' '
 
 	for i in $numbers
 	do
-		git checkout -b branch$i master &&
+		git checkout -b branch$i main &&
 		> file$i &&
 		git add file$i &&
 		test_tick &&
t/t3203-branch-output.sh +20 -20
index a2144dd8e5..a7d2edd988 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='git branch display tests'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -29,7 +29,7 @@ test_expect_success 'make remote branches' '
 cat >expect <<'EOF'
   branch-one
   branch-two
-* master
+* main
 EOF
 test_expect_success 'git branch shows local branches' '
 	git branch >actual &&
@@ -63,7 +63,7 @@ test_expect_success 'git branch -r shows remote branches' '
 cat >expect <<'EOF'
   branch-one
   branch-two
-* master
+* main
   remotes/origin/HEAD -> origin/branch-one
   remotes/origin/branch-one
   remotes/origin/branch-two
@@ -155,7 +155,7 @@ test_expect_success 'git branch shows detached HEAD properly' '
 * (HEAD detached at $(git rev-parse --short HEAD^0))
   branch-one
   branch-two
-  master
+  main
 EOF
 	git checkout HEAD^0 &&
 	git branch >actual &&
@@ -163,12 +163,12 @@ EOF
 '
 
 test_expect_success 'git branch shows detached HEAD properly after checkout --detach' '
-	git checkout master &&
+	git checkout main &&
 	cat >expect <<EOF &&
 * (HEAD detached at $(git rev-parse --short HEAD^0))
   branch-one
   branch-two
-  master
+  main
 EOF
 	git checkout --detach &&
 	git branch >actual &&
@@ -180,7 +180,7 @@ test_expect_success 'git branch shows detached HEAD properly after moving' '
 * (HEAD detached from $(git rev-parse --short HEAD))
   branch-one
   branch-two
-  master
+  main
 EOF
 	git reset --hard HEAD^1 &&
 	git branch >actual &&
@@ -192,9 +192,9 @@ test_expect_success 'git branch shows detached HEAD properly from tag' '
 * (HEAD detached at fromtag)
   branch-one
   branch-two
-  master
+  main
 EOF
-	git tag fromtag master &&
+	git tag fromtag main &&
 	git checkout fromtag &&
 	git branch >actual &&
 	test_i18ncmp expect actual
@@ -205,7 +205,7 @@ test_expect_success 'git branch shows detached HEAD properly after moving from t
 * (HEAD detached from fromtag)
   branch-one
   branch-two
-  master
+  main
 EOF
 	git reset --hard HEAD^1 &&
 	git branch >actual &&
@@ -217,7 +217,7 @@ test_expect_success 'git branch `--sort` option' '
 	* (HEAD detached from fromtag)
 	  branch-two
 	  branch-one
-	  master
+	  main
 	EOF
 	git branch --sort=objectsize >actual &&
 	test_i18ncmp expect actual
@@ -226,7 +226,7 @@ test_expect_success 'git branch `--sort` option' '
 test_expect_success 'git branch --points-at option' '
 	cat >expect <<-\EOF &&
 	  branch-one
-	  master
+	  main
 	EOF
 	git branch --points-at=branch-one >actual &&
 	test_cmp expect actual
@@ -263,14 +263,14 @@ test_expect_success 'sort branches, ignore case' '
 		cat >expected <<-\EOF &&
 		BRANCH-two
 		branch-one
-		master
+		main
 		EOF
 		test_cmp expected actual &&
 		git branch --list -i | awk "{print \$NF}" >actual &&
 		cat >expected <<-\EOF &&
 		branch-one
 		BRANCH-two
-		master
+		main
 		EOF
 		test_cmp expected actual
 	)
@@ -282,7 +282,7 @@ test_expect_success 'git branch --format option' '
 	Refname is refs/heads/ambiguous
 	Refname is refs/heads/branch-one
 	Refname is refs/heads/branch-two
-	Refname is refs/heads/master
+	Refname is refs/heads/main
 	Refname is refs/heads/ref-to-branch
 	Refname is refs/heads/ref-to-remote
 	EOF
@@ -296,7 +296,7 @@ test_expect_success 'worktree colors correct' '
 	  ambiguous<RESET>
 	  branch-one<RESET>
 	+ <CYAN>branch-two<RESET>
-	  master<RESET>
+	  main<RESET>
 	  ref-to-branch<RESET> -> branch-one
 	  ref-to-remote<RESET> -> origin/branch-one
 	EOF
@@ -309,9 +309,9 @@ test_expect_success 'worktree colors correct' '
 '
 
 test_expect_success "set up color tests" '
-	echo "<RED>master<RESET>" >expect.color &&
-	echo "master" >expect.bare &&
-	color_args="--format=%(color:red)%(refname:short) --list master"
+	echo "<RED>main<RESET>" >expect.color &&
+	echo "main" >expect.bare &&
+	color_args="--format=%(color:red)%(refname:short) --list main"
 '
 
 test_expect_success '%(color) omitted without tty' '
@@ -334,7 +334,7 @@ test_expect_success '--color overrides auto-color' '
 
 test_expect_success PREPARE_FOR_MAIN_BRANCH 'verbose output lists worktree path' '
 	one=$(git rev-parse --short HEAD) &&
-	two=$(git rev-parse --short master) &&
+	two=$(git rev-parse --short main) &&
 	cat >expect <<-EOF &&
 	* (HEAD detached from fromtag) $one one
 	  ambiguous                    $one one
t/t3204-branch-name-interpretation.sh +4 -4
index dd315ebf04..993a6b5eff 100755
@@ -6,7 +6,7 @@ Branch name arguments are usually names which are taken to be inside of
 refs/heads/, but we interpret some magic syntax like @{-1}, @{upstream}, etc.
 This script aims to check the behavior of those corner cases.
 '
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -31,7 +31,7 @@ test_expect_success 'update branch via @{-1}' '
 	git branch previous one &&
 
 	git checkout previous &&
-	git checkout master &&
+	git checkout main &&
 
 	git branch -f @{-1} two &&
 	expect_branch previous two
@@ -61,7 +61,7 @@ test_expect_success 'delete branch via @{-1}' '
 	git branch previous-del &&
 
 	git checkout previous-del &&
-	git checkout master &&
+	git checkout main &&
 
 	git branch -D @{-1} &&
 	expect_deleted previous-del
@@ -101,7 +101,7 @@ test_expect_success 'disallow deleting remote branch via @{-1}' '
 	git update-ref refs/remotes/origin/previous one &&
 
 	git checkout -b origin/previous two &&
-	git checkout master &&
+	git checkout main &&
 
 	test_must_fail git branch -r -D @{-1} &&
 	expect_branch refs/remotes/origin/previous one &&
t/t3205-branch-color.sh +4 -4
index 8b54a9252b..b905dc4867 100755
@@ -1,14 +1,14 @@
 #!/bin/sh
 
 test_description='basic branch output coloring'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
 
 test_expect_success 'set up some sample branches' '
 	test_commit foo &&
-	git update-ref refs/remotes/origin/master HEAD &&
+	git update-ref refs/remotes/origin/main HEAD &&
 	git update-ref refs/heads/other HEAD
 '
 
@@ -22,9 +22,9 @@ test_expect_success 'set up some color config' '
 
 test_expect_success 'regular output shows colors' '
 	cat >expect <<-\EOF &&
-	* <CYAN>master<RESET>
+	* <CYAN>main<RESET>
 	  <BLUE>other<RESET>
-	  <YELLOW>remotes/origin/master<RESET>
+	  <YELLOW>remotes/origin/main<RESET>
 	EOF
 	git branch --color -a >actual.raw &&
 	test_decode_color <actual.raw >actual &&
t/t3206-range-diff.sh +21 -21

162 lines not on this page · raw message

t/t3206/history.export +1 -1
index 4c808e5b3b..4485adc37b 100644
@@ -168,7 +168,7 @@ mark :11
 data 10
 unrelated
 
-commit refs/heads/master
+commit refs/heads/main
 mark :12
 author Thomas Rast <[email protected]> 1374485127 +0200
 committer Thomas Rast <[email protected]> 1374485127 +0200
t/t3210-pack-refs.sh +3 -3
index 90eea19564..3b7cdc56ec 100755
@@ -9,7 +9,7 @@ test_description='git pack-refs should not change the branch semantic
 This test runs git pack-refs and git show-ref and checks that the branch
 semantic is still the same.
 '
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -138,7 +138,7 @@ test_expect_success 'delete ref with dangling packed version' '
 	git commit --allow-empty -m "future garbage" &&
 	git pack-refs --all &&
 	git reset --hard HEAD^ &&
-	git checkout master &&
+	git checkout main &&
 	git reflog expire --expire=all --all &&
 	git prune --expire=all &&
 	git branch -d lamb 2>result &&
@@ -243,7 +243,7 @@ test_expect_success 'retry acquiring packed-refs.lock' '
 
 test_expect_success SYMLINKS 'pack symlinked packed-refs' '
 	# First make sure that symlinking works when reading:
-	git update-ref refs/heads/lossy refs/heads/master &&
+	git update-ref refs/heads/lossy refs/heads/main &&
 	git for-each-ref >all-refs-before &&
 	mv .git/packed-refs .git/my-deviant-packed-refs &&
 	ln -s my-deviant-packed-refs .git/packed-refs &&
t/t3211-peel-ref.sh +3 -3
index f3d9c6b6b6..37b9d26f4b 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='tests for the peel_ref optimization of packed-refs'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -22,7 +22,7 @@ print_ref() {
 
 test_expect_success 'set up expected show-ref output' '
 	{
-		print_ref "refs/heads/master" &&
+		print_ref "refs/heads/main" &&
 		print_ref "refs/outside/foo" &&
 		print_ref "refs/outside/foo^{}" &&
 		print_ref "refs/tags/base" &&
@@ -50,7 +50,7 @@ test_expect_success 'create old-style pack-refs without fully-peeled' '
 	# know we are emulating exactly what an older git would have written.
 	{
 		echo "# pack-refs with: peeled " &&
-		print_ref "refs/heads/master" &&
+		print_ref "refs/heads/main" &&
 		print_ref "refs/outside/foo" &&
 		print_ref "refs/tags/base" &&
 		print_ref "refs/tags/foo" &&
t/t3301-notes.sh +3 -3
index 8f43303007..2b685580b6 100755
@@ -1295,11 +1295,11 @@ test_expect_success 'git notes copy diagnoses too many or too few parameters' '
 	test_i18ngrep "too many parameters" error
 '
 
-test_expect_success 'git notes get-ref expands refs/heads/master to refs/notes/refs/heads/master' '
+test_expect_success 'git notes get-ref expands refs/heads/main to refs/notes/refs/heads/main' '
 	test_unconfig core.notesRef &&
 	sane_unset GIT_NOTES_REF &&
-	echo refs/notes/refs/heads/master >expect &&
-	git notes --ref=refs/heads/master get-ref >actual &&
+	echo refs/notes/refs/heads/main >expect &&
+	git notes --ref=refs/heads/main get-ref >actual &&
 	test_cmp expect actual
 '
 
t/t3302-notes-index-expensive.sh +2 -2
index 1564befe00..ef8b63952e 100755
@@ -5,7 +5,7 @@
 
 test_description='Test commit notes index (expensive!)'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -23,7 +23,7 @@ create_repo () {
 			notemark=$(($mark+1))
 			test_tick &&
 			cat <<-INPUT_END &&
-			commit refs/heads/master
+			commit refs/heads/main
 			mark :$mark
 			committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE
 			data <<COMMIT
t/t3303-notes-subtrees.sh +5 -5
index 16f3438355..d47ce00f69 100755
@@ -2,7 +2,7 @@
 
 test_description='Test commit notes organized in subtrees'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -43,7 +43,7 @@ test_expect_success "setup: create $number_of_commits commits" '
 			nr=$(($nr+1)) &&
 			test_tick &&
 			cat <<INPUT_END
-commit refs/heads/master
+commit refs/heads/main
 committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE
 data <<COMMIT
 commit #$nr
@@ -78,7 +78,7 @@ test_sha1_based () {
 	(
 		start_note_commit &&
 		nr=$number_of_commits &&
-		git rev-list refs/heads/master |
+		git rev-list refs/heads/main |
 		while read sha1; do
 			note_path=$(echo "$sha1" | sed "$1")
 			cat <<INPUT_END &&
@@ -108,7 +108,7 @@ test_same_notes () {
 	(
 		start_note_commit &&
 		nr=$number_of_commits &&
-		git rev-list refs/heads/master |
+		git rev-list refs/heads/main |
 		while read sha1; do
 			first_note_path=$(echo "$sha1" | sed "$1")
 			second_note_path=$(echo "$sha1" | sed "$2")
@@ -147,7 +147,7 @@ test_concatenated_notes () {
 	(
 		start_note_commit &&
 		nr=$number_of_commits &&
-		git rev-list refs/heads/master |
+		git rev-list refs/heads/main |
 		while read sha1; do
 			first_note_path=$(echo "$sha1" | sed "$1")
 			second_note_path=$(echo "$sha1" | sed "$2")
t/t3304-notes-mixed.sh +5 -5
index 6a7b8e2829..03dfcd3954 100755
@@ -2,7 +2,7 @@
 
 test_description='Test notes trees that also contain non-notes'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -39,7 +39,7 @@ test_expect_success "setup: create a couple of commits" '
 
 	test_tick &&
 	cat <<INPUT_END >input &&
-commit refs/heads/master
+commit refs/heads/main
 committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE
 data <<COMMIT
 commit #1
@@ -54,7 +54,7 @@ INPUT_END
 
 	test_tick &&
 	cat <<INPUT_END >>input &&
-commit refs/heads/master
+commit refs/heads/main
 committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE
 data <<COMMIT
 commit #2
@@ -71,8 +71,8 @@ INPUT_END
 
 test_expect_success "create a notes tree with both notes and non-notes" '
 
-	commit1=$(git rev-parse refs/heads/master^) &&
-	commit2=$(git rev-parse refs/heads/master) &&
+	commit1=$(git rev-parse refs/heads/main^) &&
+	commit2=$(git rev-parse refs/heads/main) &&
 	test_tick &&
 	cat <<INPUT_END >input &&
 commit refs/notes/commits
t/t3308-notes-merge.sh +1 -1
index d69c84c640..202702be1a 100755
@@ -108,7 +108,7 @@ test_expect_success 'fail to merge into various non-notes refs' '
 	git update-ref refs/notes/dir/foo HEAD &&
 	test_must_fail git -c "core.notesRef=refs/notes/dir" notes merge x &&
 	test_must_fail git -c "core.notesRef=refs/notes/dir/" notes merge x &&
-	test_must_fail git -c "core.notesRef=refs/heads/master" notes merge x &&
+	test_must_fail git -c "core.notesRef=refs/heads/main" notes merge x &&
 	test_must_fail git -c "core.notesRef=refs/notes/y:" notes merge x &&
 	test_must_fail git -c "core.notesRef=refs/notes/y:foo" notes merge x &&
 	test_must_fail git -c "core.notesRef=refs/notes/foo^{bar" notes merge x
t/t3320-notes-merge-worktrees.sh +3 -3
index f86975414c..052516e6c6 100755
@@ -5,7 +5,7 @@
 
 test_description='Test merging of notes trees in multiple worktrees'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -39,8 +39,8 @@ test_expect_success 'modify notes ref ourselves (x)' '
 '
 
 test_expect_success 'create some new worktrees' '
-	git worktree add -b newbranch worktree master &&
-	git worktree add -b newbranch2 worktree2 master
+	git worktree add -b newbranch worktree main &&
+	git worktree add -b newbranch2 worktree2 main
 '
 
 test_expect_success 'merge z into y fails and sets NOTES_MERGE_REF' '
Signature · 1 line
gitgitgadget
#104 lore raw

PATCH v3 11/28 t5[0-4]*: adjust the references to the default branch name "main"

In reply to Johannes Schindelin via GitGitGadget

From: Johannes Schindelin <[email protected]>

Carefully excluding t5310, which is developed independently of the current patch series at the time of writing, we now use main as default branch in t5[0-4]*. This trick was performed via

	$ (cd t &&
	   sed -i -e 's/master/main/g' -e 's/MASTER/MAIN/g' \
		-e 's/Master/Main/g' -- t5[0-4]*.sh &&
	   git checkout HEAD -- t5310\*)

This allows us to define GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main for those tests.

---
 t/t5150-request-pull.sh                | 36 +++++++-------
 t/t5304-prune.sh                       |  4 +-
 t/t5305-include-tag.sh                 |  4 +-
 t/t5312-prune-corruption.sh            | 18 +++----
 t/t5317-pack-objects-filter-objects.sh |  4 +-
 t/t5322-pack-objects-sparse.sh         |  4 +-
 t/t5323-pack-redundant.sh              | 66 +++++++++++++-------------
 t/t5400-send-pack.sh                   | 62 ++++++++++++------------
 t/t5401-update-hooks.sh                | 24 +++++-----
 t/t5402-post-merge-hook.sh             |  4 +-
 t/t5403-post-checkout-hook.sh          |  8 ++--
 t/t5404-tracking-branches.sh           | 10 ++--
 t/t5405-send-pack-rewind.sh            |  8 ++--
 t/t5407-post-rewrite-hook.sh           |  4 +-
 t/t5410-receive-pack-alternates.sh     |  6 +--
 15 files changed, 131 insertions(+), 131 deletions(-)
t/t5150-request-pull.sh +18 -18
index 752e1fb2d2..db4e15fd59 100755
@@ -2,7 +2,7 @@
 
 test_description='Test workflows involving pull request.'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -34,13 +34,13 @@ test_expect_success 'setup' '
 		test_tick &&
 		git commit -m "\"Thirty days\", a reminder of month lengths" &&
 		git tag -m "version 1" -a initial &&
-		git push --tags origin master
+		git push --tags origin main
 	) &&
 	(
 		cd local &&
 		git remote add upstream "$trash_url/upstream.git" &&
 		git fetch upstream &&
-		git pull upstream master &&
+		git pull upstream main &&
 		cat <<-\EOT >>mnemonic.txt &&
 		Of twyecescore-eightt is but eine,
 		And all the remnante be thrycescore-eine.
@@ -62,7 +62,7 @@ test_expect_success 'setup' '
 		git commit -a -m "Adapt to use modern, simpler English
 
 But keep the old version, too, in case some people prefer it." &&
-		git checkout master
+		git checkout main
 	)
 
 '
@@ -132,7 +132,7 @@ test_expect_success 'pull request when forgot to push' '
 	(
 		cd local &&
 		git checkout initial &&
-		git merge --ff-only master &&
+		git merge --ff-only main &&
 		test_must_fail git request-pull initial "$downstream_url" \
 			2>../err
 	) &&
@@ -148,9 +148,9 @@ test_expect_success 'pull request after push' '
 	(
 		cd local &&
 		git checkout initial &&
-		git merge --ff-only master &&
-		git push origin master:for-upstream &&
-		git request-pull initial origin master:for-upstream >../request
+		git merge --ff-only main &&
+		git push origin main:for-upstream &&
+		git request-pull initial origin main:for-upstream >../request
 	) &&
 	sed -nf read-request.sed <request >digest &&
 	{
@@ -175,9 +175,9 @@ test_expect_success 'request asks HEAD to be pulled' '
 	(
 		cd local &&
 		git checkout initial &&
-		git merge --ff-only master &&
-		git push --tags origin master simplify &&
-		git push origin master:for-upstream &&
+		git merge --ff-only main &&
+		git push --tags origin main simplify &&
+		git push origin main:for-upstream &&
 		git request-pull initial "$downstream_url" >../request
 	) &&
 	sed -nf read-request.sed <request >digest &&
@@ -218,7 +218,7 @@ test_expect_success 'pull request format' '
 	(
 		cd local &&
 		git checkout initial &&
-		git merge --ff-only master &&
+		git merge --ff-only main &&
 		git push origin tags/full &&
 		git request-pull initial "$downstream_url" tags/full >../request
 	) &&
@@ -246,9 +246,9 @@ test_expect_success 'request-pull ignores OPTIONS_KEEPDASHDASH poison' '
 		OPTIONS_KEEPDASHDASH=Yes &&
 		export OPTIONS_KEEPDASHDASH &&
 		git checkout initial &&
-		git merge --ff-only master &&
-		git push origin master:for-upstream &&
-		git request-pull -- initial "$downstream_url" master:for-upstream >../request
+		git merge --ff-only main &&
+		git push origin main:for-upstream &&
+		git request-pull -- initial "$downstream_url" main:for-upstream >../request
 	)
 
 '
@@ -260,7 +260,7 @@ test_expect_success 'request-pull quotes regex metacharacters properly' '
 	(
 		cd local &&
 		git checkout initial &&
-		git merge --ff-only master &&
+		git merge --ff-only main &&
 		git tag -mrelease v2.0 &&
 		git push origin refs/tags/v2.0:refs/tags/v2-0 &&
 		test_must_fail git request-pull initial "$downstream_url" tags/v2.0 \
@@ -278,7 +278,7 @@ test_expect_success 'pull request with mismatched object' '
 	(
 		cd local &&
 		git checkout initial &&
-		git merge --ff-only master &&
+		git merge --ff-only main &&
 		git push origin HEAD:refs/tags/full &&
 		test_must_fail git request-pull initial "$downstream_url" tags/full \
 			2>../err
@@ -295,7 +295,7 @@ test_expect_success 'pull request with stale object' '
 	(
 		cd local &&
 		git checkout initial &&
-		git merge --ff-only master &&
+		git merge --ff-only main &&
 		git push origin refs/tags/full &&
 		git tag -f -m"Thirty-one days" full &&
 		test_must_fail git request-pull initial "$downstream_url" tags/full \
t/t5304-prune.sh +2 -2
index bd5f71e396..b447ce56a9 100755
@@ -4,7 +4,7 @@
 #
 
 test_description='prune'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -122,7 +122,7 @@ test_expect_success 'prune: do not prune detached HEAD with no reflog' '
 test_expect_success 'prune: prune former HEAD after checking out branch' '
 
 	head_oid=$(git rev-parse HEAD) &&
-	git checkout --quiet master &&
+	git checkout --quiet main &&
 	git prune -v >prune_actual &&
 	grep "$head_oid" prune_actual
 
t/t5305-include-tag.sh +2 -2
index 2e56887ed5..44bd9ef45f 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='git pack-object --include-tag'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -114,7 +114,7 @@ test_expect_success 'check unpacked result (have all objects)' '
 
 test_expect_success 'single-branch clone can transfer tag' '
 	rm -rf clone.git &&
-	git clone --no-local --single-branch -b master . clone.git &&
+	git clone --no-local --single-branch -b main . clone.git &&
 	git -C clone.git fsck
 '
 
t/t5312-prune-corruption.sh +9 -9
index c70b5db2a0..11423b3cb2 100755
@@ -8,7 +8,7 @@ bail out or to proceed using it as a reachable tip, but it is _not_
 OK to proceed as if it did not exist. Otherwise we might silently
 delete objects that cannot be recovered.
 '
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -19,7 +19,7 @@ test_expect_success 'disable reflogs' '
 '
 
 test_expect_success 'create history reachable only from a bogus-named ref' '
-	test_tick && git commit --allow-empty -m master &&
+	test_tick && git commit --allow-empty -m main &&
 	base=$(git rev-parse HEAD) &&
 	test_tick && git commit --allow-empty -m bogus &&
 	bogus=$(git rev-parse HEAD) &&
@@ -54,7 +54,7 @@ test_expect_success 'clean up bogus ref' '
 '
 
 # We create two new objects here, "one" and "two". Our
-# master branch points to "two", which is deleted,
+# main branch points to "two", which is deleted,
 # corrupting the repository. But we'd like to make sure
 # that the otherwise unreachable "one" is not pruned
 # (since it is the user's best bet for recovering
@@ -84,7 +84,7 @@ test_expect_success 'pruning with a corrupted tip does not drop history' '
 test_expect_success 'pack-refs does not silently delete broken loose ref' '
 	git pack-refs --all --prune &&
 	echo $missing >expect &&
-	git rev-parse refs/heads/master >actual &&
+	git rev-parse refs/heads/main >actual &&
 	test_cmp expect actual
 '
 
@@ -92,25 +92,25 @@ test_expect_success 'pack-refs does not silently delete broken loose ref' '
 # actually pack it, as it is perfectly reasonable to
 # skip processing a broken ref
 test_expect_success 'create packed-refs file with broken ref' '
-	rm -f .git/refs/heads/master &&
+	rm -f .git/refs/heads/main &&
 	cat >.git/packed-refs <<-EOF &&
-	$missing refs/heads/master
+	$missing refs/heads/main
 	$recoverable refs/heads/other
 	EOF
 	echo $missing >expect &&
-	git rev-parse refs/heads/master >actual &&
+	git rev-parse refs/heads/main >actual &&
 	test_cmp expect actual
 '
 
 test_expect_success 'pack-refs does not silently delete broken packed ref' '
 	git pack-refs --all --prune &&
-	git rev-parse refs/heads/master >actual &&
+	git rev-parse refs/heads/main >actual &&
 	test_cmp expect actual
 '
 
 test_expect_success 'pack-refs does not drop broken refs during deletion' '
 	git update-ref -d refs/heads/other &&
-	git rev-parse refs/heads/master >actual &&
+	git rev-parse refs/heads/main >actual &&
 	test_cmp expect actual
 '
 
t/t5317-pack-objects-filter-objects.sh +2 -2
index f19c521292..13ed3eb136 100755
@@ -2,7 +2,7 @@
 
 test_description='git pack-objects using object filtering'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -385,7 +385,7 @@ test_expect_success 'verify sparse:oid=oid-ish' '
 	awk -f print_2.awk ls_files_result |
 	sort >expected &&
 
-	git -C r4 pack-objects --revs --stdout --filter=sparse:oid=master:pattern >filter.pack <<-EOF &&
+	git -C r4 pack-objects --revs --stdout --filter=sparse:oid=main:pattern >filter.pack <<-EOF &&
 	HEAD
 	EOF
 	git -C r4 index-pack ../filter.pack &&
t/t5322-pack-objects-sparse.sh +2 -2
index c92658d026..61cb907a90 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='pack-objects object selection using sparse algorithm'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -21,7 +21,7 @@ test_expect_success 'setup repo' '
 	git commit -m "Initialized trees" &&
 	for i in $(test_seq 1 3)
 	do
-		git checkout -b topic$i master &&
+		git checkout -b topic$i main &&
 		echo change-$i >f$i/f$i/data.txt &&
 		git commit -a -m "Changed f$i/f$i/data.txt"
 	done &&
t/t5323-pack-redundant.sh +33 -33

202 lines not on this page · raw message

t/t5400-send-pack.sh +31 -31

154 lines not on this page · raw message

t/t5401-update-hooks.sh +12 -12
index 956d69f5b1..6012cc8172 100755
@@ -15,11 +15,11 @@ test_expect_success setup '
 	git update-index a &&
 	tree1=$(git write-tree) &&
 	commit1=$(echo modify | git commit-tree $tree1 -p $commit0) &&
-	git update-ref refs/heads/master $commit0 &&
+	git update-ref refs/heads/main $commit0 &&
 	git update-ref refs/heads/tofail $commit1 &&
 	git clone --bare ./. victim.git &&
 	GIT_DIR=victim.git git update-ref refs/heads/tofail $commit1 &&
-	git update-ref refs/heads/master $commit1 &&
+	git update-ref refs/heads/main $commit1 &&
 	git update-ref refs/heads/tofail $commit0
 '
 
@@ -38,7 +38,7 @@ echo "$@" >>$GIT_DIR/update.args
 read x; printf %s "$x" >$GIT_DIR/update.stdin
 echo STDOUT update $1
 echo STDERR update $1 >&2
-test "$1" = refs/heads/master || exit
+test "$1" = refs/heads/main || exit
 EOF
 chmod u+x victim.git/hooks/update
 
@@ -62,11 +62,11 @@ chmod u+x victim.git/hooks/post-update
 
 test_expect_success push '
 	test_must_fail git send-pack --force ./victim.git \
-		master tofail >send.out 2>send.err
+		main tofail >send.out 2>send.err
 '
 
 test_expect_success 'updated as expected' '
-	test $(GIT_DIR=victim.git git rev-parse master) = $commit1 &&
+	test $(GIT_DIR=victim.git git rev-parse main) = $commit1 &&
 	test $(GIT_DIR=victim.git git rev-parse tofail) = $commit1
 '
 
@@ -82,24 +82,24 @@ test_expect_success 'hooks ran' '
 '
 
 test_expect_success 'pre-receive hook input' '
-	(echo $commit0 $commit1 refs/heads/master &&
+	(echo $commit0 $commit1 refs/heads/main &&
 	 echo $commit1 $commit0 refs/heads/tofail
 	) | test_cmp - victim.git/pre-receive.stdin
 '
 
 test_expect_success 'update hook arguments' '
-	(echo refs/heads/master $commit0 $commit1 &&
+	(echo refs/heads/main $commit0 $commit1 &&
 	 echo refs/heads/tofail $commit1 $commit0
 	) | test_cmp - victim.git/update.args
 '
 
 test_expect_success 'post-receive hook input' '
-	echo $commit0 $commit1 refs/heads/master |
+	echo $commit0 $commit1 refs/heads/main |
 	test_cmp - victim.git/post-receive.stdin
 '
 
 test_expect_success 'post-update hook arguments' '
-	echo refs/heads/master |
+	echo refs/heads/main |
 	test_cmp - victim.git/post-update.args
 '
 
@@ -120,8 +120,8 @@ test_expect_success 'send-pack produced no output' '
 cat <<EOF >expect
 remote: STDOUT pre-receive
 remote: STDERR pre-receive
-remote: STDOUT update refs/heads/master
-remote: STDERR update refs/heads/master
+remote: STDOUT update refs/heads/main
+remote: STDERR update refs/heads/main
 remote: STDOUT update refs/heads/tofail
 remote: STDERR update refs/heads/tofail
 remote: error: hook declined to update refs/heads/tofail
@@ -143,7 +143,7 @@ test_expect_success 'pre-receive hook that forgets to read its input' '
 
 	for v in $(test_seq 100 999)
 	do
-		git branch branch_$v master || return
+		git branch branch_$v main || return
 	done &&
 	git push ./victim.git "+refs/heads/*:refs/heads/*"
 '
t/t5402-post-merge-hook.sh +2 -2
index 27fc6ec4f3..3e5e19c719 100755
@@ -4,7 +4,7 @@
 #
 
 test_description='Test the post-merge hook.'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -18,7 +18,7 @@ test_expect_success setup '
 	git update-index a &&
 	tree1=$(git write-tree) &&
 	commit1=$(echo modify | git commit-tree $tree1 -p $commit0) &&
-	git update-ref refs/heads/master $commit0 &&
+	git update-ref refs/heads/main $commit0 &&
 	git clone ./. clone1 &&
 	GIT_DIR=clone1/.git git update-index --add a &&
 	git clone ./. clone2 &&
t/t5403-post-checkout-hook.sh +4 -4
index ed91aadd95..1ec9e23be7 100755
@@ -4,7 +4,7 @@
 #
 
 test_description='Test the post-checkout hook.'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -23,7 +23,7 @@ test_expect_success setup '
 
 test_expect_success 'post-checkout receives the right arguments with HEAD unchanged ' '
 	test_when_finished "rm -f .git/post-checkout.args" &&
-	git checkout master &&
+	git checkout main &&
 	read old new flag <.git/post-checkout.args &&
 	test $old = $new && test $flag = 1
 '
@@ -44,14 +44,14 @@ test_expect_success 'post-checkout receives the right args with HEAD changed ' '
 
 test_expect_success 'post-checkout receives the right args when not switching branches ' '
 	test_when_finished "rm -f .git/post-checkout.args" &&
-	git checkout master -- three.t &&
+	git checkout main -- three.t &&
 	read old new flag <.git/post-checkout.args &&
 	test $old = $new && test $flag = 0
 '
 
 test_expect_success 'post-checkout is triggered on rebase' '
 	test_when_finished "rm -f .git/post-checkout.args" &&
-	git checkout -b rebase-test master &&
+	git checkout -b rebase-test main &&
 	rm -f .git/post-checkout.args &&
 	git rebase rebase-on-me &&
 	read old new flag <.git/post-checkout.args &&
t/t5404-tracking-branches.sh +5 -5
index da37b22fc5..cc07889667 100755
@@ -2,7 +2,7 @@
 
 test_description='tracking branch update checks for git push'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -33,9 +33,9 @@ test_expect_success 'prepare pushable branches' '
 	git checkout -b b2 origin/b2 &&
 	echo aa-b2 >>file &&
 	git commit -a -m aa-b2 &&
-	git checkout master &&
-	echo aa-master >>file &&
-	git commit -a -m aa-master
+	git checkout main &&
+	echo aa-main >>file &&
+	git commit -a -m aa-main
 '
 
 test_expect_success 'mixed-success push returns error' '
@@ -43,7 +43,7 @@ test_expect_success 'mixed-success push returns error' '
 '
 
 test_expect_success 'check tracking branches updated correctly after push' '
-	test "$(git rev-parse origin/master)" = "$(git rev-parse master)"
+	test "$(git rev-parse origin/main)" = "$(git rev-parse main)"
 '
 
 test_expect_success 'check tracking branches not updated for failed refs' '
t/t5405-send-pack-rewind.sh +4 -4
index 1f5b33b562..11f03239a0 100755
@@ -2,7 +2,7 @@
 
 test_description='forced push to replace commit we do not have'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -16,7 +16,7 @@ test_expect_success setup '
 	mkdir another && (
 		cd another &&
 		git init &&
-		git fetch --update-head-ok .. master:master
+		git fetch --update-head-ok .. main:main
 	) &&
 
 	>file2 && git add file2 && test_tick &&
@@ -28,7 +28,7 @@ test_expect_success 'non forced push should die not segfault' '
 
 	(
 		cd another &&
-		test_must_fail git push .. master:master
+		test_must_fail git push .. main:main
 	)
 
 '
@@ -37,7 +37,7 @@ test_expect_success 'forced push should succeed' '
 
 	(
 		cd another &&
-		git push .. +master:master
+		git push .. +main:main
 	)
 
 '
t/t5407-post-rewrite-hook.sh +2 -2
index 78bffa64d7..5bb23cc3a4 100755
@@ -4,7 +4,7 @@
 #
 
 test_description='Test the post-rewrite hook.'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -17,7 +17,7 @@ test_expect_success 'setup' '
 	git checkout A^0 &&
 	test_commit E bar E &&
 	test_commit F foo F &&
-	git checkout master
+	git checkout main
 '
 
 mkdir .git/hooks
t/t5410-receive-pack-alternates.sh +3 -3
index 30a4e6bb1a..0b28e4e452 100755
@@ -2,7 +2,7 @@
 
 test_description='git receive-pack with alternate ref filtering'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -10,9 +10,9 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 test_expect_success 'setup' '
 	test_commit base &&
 	git clone -s --bare . fork &&
-	git checkout -b public/branch master &&
+	git checkout -b public/branch main &&
 	test_commit public &&
-	git checkout -b private/branch master &&
+	git checkout -b private/branch main &&
 	test_commit private
 '
 
Signature · 1 line
gitgitgadget
#106 lore raw

PATCH v3 13/28 t550*: adjust the references to the default branch name "main"

In reply to Johannes Schindelin via GitGitGadget

From: Johannes Schindelin <[email protected]>

This trick was performed via

	$ (cd t &&
	   sed -i -e 's/master/main/g' -e 's/MASTER/MAIN/g' \
		-e 's/Master/Main/g' -- t550*.sh)

This allows us to define GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main for those tests.

---
 t/t5500-fetch-pack.sh            |  30 +++----
 t/t5501-fetch-push-alternates.sh |   6 +-
 t/t5502-quickfetch.sh            |   8 +-
 t/t5503-tagfollow.sh             |  14 +--
 t/t5504-fetch-receive-strict.sh  |  22 ++---
 t/t5505-remote.sh                | 142 +++++++++++++++----------------
 t/t5506-remote-groups.sh         |   6 +-
 t/t5509-fetch-push-namespaces.sh |  32 +++----
 8 files changed, 130 insertions(+), 130 deletions(-)
t/t5500-fetch-pack.sh +15 -15
index 4edb8c196e..1f4cc873a8 100755
@@ -5,7 +5,7 @@
 
 test_description='Testing multi_ack pack fetching'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -410,14 +410,14 @@ test_expect_success 'in_vain resetted upon ACK' '
 	rm -rf myserver myclient &&
 	git init myserver &&
 
-	# Linked list of commits on master. The first is common; the rest are
+	# Linked list of commits on main. The first is common; the rest are
 	# not.
-	test_commit -C myserver first_master_commit &&
+	test_commit -C myserver first_main_commit &&
 	git clone "file://$(pwd)/myserver" myclient &&
 	test_commit_bulk -C myclient 255 &&
 
 	# Another linked list of commits on anotherbranch with no connection to
-	# master. The first is common; the rest are not.
+	# main. The first is common; the rest are not.
 	git -C myserver checkout --orphan anotherbranch &&
 	test_commit -C myserver first_anotherbranch_commit &&
 	git -C myclient fetch origin anotherbranch:refs/heads/anotherbranch &&
@@ -425,14 +425,14 @@ test_expect_success 'in_vain resetted upon ACK' '
 	test_commit_bulk -C myclient 255 &&
 
 	# The new commit that the client wants to fetch.
-	git -C myserver checkout master &&
+	git -C myserver checkout main &&
 	test_commit -C myserver to_fetch &&
 
 	# The client will send (as "have"s) all 256 commits in anotherbranch
 	# first. The 256th commit is common between the client and the server,
 	# and should reset in_vain. This allows negotiation to continue until
 	# the client reports that first_anotherbranch_commit is common.
-	git -C myclient fetch --progress origin master 2>log &&
+	git -C myclient fetch --progress origin main 2>log &&
 	test_i18ngrep "Total 3 " log
 '
 
@@ -640,7 +640,7 @@ test_expect_success 'shallow fetch with tags does not break the repository' '
 		mkdir repo2 &&
 		cd repo2 &&
 		git init &&
-		git fetch --depth=2 ../.git master:branch &&
+		git fetch --depth=2 ../.git main:branch &&
 		git fsck
 	)
 '
@@ -665,7 +665,7 @@ test_expect_success 'fetch-pack can fetch a raw sha1 that is advertised as a ref
 
 	git init client &&
 	git -C client fetch-pack ../server \
-		$(git -C server rev-parse refs/heads/master)
+		$(git -C server rev-parse refs/heads/main)
 '
 
 test_expect_success 'fetch-pack can fetch a raw sha1 overlapping a named ref' '
@@ -691,7 +691,7 @@ test_expect_success 'fetch-pack cannot fetch a raw sha1 that is not advertised a
 	# Some protocol versions (e.g. 2) support fetching
 	# unadvertised objects, so restrict this test to v0.
 	test_must_fail env GIT_TEST_PROTOCOL_VERSION=0 git -C client fetch-pack ../server \
-		$(git -C server rev-parse refs/heads/master^) 2>err &&
+		$(git -C server rev-parse refs/heads/main^) 2>err &&
 	test_i18ngrep "Server does not allow request for unadvertised object" err
 '
 
@@ -825,7 +825,7 @@ test_expect_success 'clone shallow since ...' '
 
 test_expect_success 'fetch shallow since ...' '
 	git -C shallow11 fetch --shallow-since "200000000 +0700" origin &&
-	git -C shallow11 log --pretty=tformat:%s origin/master >actual &&
+	git -C shallow11 log --pretty=tformat:%s origin/main >actual &&
 	cat >expected <<-\EOF &&
 	three
 	two
@@ -866,7 +866,7 @@ test_expect_success 'shallow since with commit graph and already-seen commit' '
 	(
 	cd shallow-since-graph &&
 	test_commit base &&
-	test_commit master &&
+	test_commit main &&
 	git checkout -b other HEAD^ &&
 	test_commit other &&
 	git commit-graph write --reachable &&
@@ -877,7 +877,7 @@ test_expect_success 'shallow since with commit graph and already-seen commit' '
 	$(echo "object-format=$(test_oid algo)" | packetize)
 	00010013deepen-since 1
 	$(echo "want $(git rev-parse other)" | packetize)
-	$(echo "have $(git rev-parse master)" | packetize)
+	$(echo "have $(git rev-parse main)" | packetize)
 	0000
 	EOF
 	)
@@ -899,7 +899,7 @@ test_expect_success 'shallow clone exclude tag two' '
 
 test_expect_success 'fetch exclude tag one' '
 	git -C shallow12 fetch --shallow-exclude one origin &&
-	git -C shallow12 log --pretty=tformat:%s origin/master >actual &&
+	git -C shallow12 log --pretty=tformat:%s origin/main >actual &&
 	test_write_lines three two >expected &&
 	test_cmp expected actual
 '
@@ -913,11 +913,11 @@ test_expect_success 'fetching deepen' '
 	test_commit three &&
 	git clone --depth 1 "file://$(pwd)/." deepen &&
 	test_commit four &&
-	git -C deepen log --pretty=tformat:%s master >actual &&
+	git -C deepen log --pretty=tformat:%s main >actual &&
 	echo three >expected &&
 	test_cmp expected actual &&
 	git -C deepen fetch --deepen=1 &&
-	git -C deepen log --pretty=tformat:%s origin/master >actual &&
+	git -C deepen log --pretty=tformat:%s origin/main >actual &&
 	cat >expected <<-\EOF &&
 	four
 	three
t/t5501-fetch-push-alternates.sh +3 -3
index 96ce28b6ba..66f19a4ef2 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='fetch/push involving alternates'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -48,7 +48,7 @@ test_expect_success setup '
 test_expect_success 'pushing into a repository with the same alternate' '
 	(
 		cd one &&
-		git push ../receiver master:refs/heads/it
+		git push ../receiver main:refs/heads/it
 	) &&
 	(
 		cd receiver &&
@@ -60,7 +60,7 @@ test_expect_success 'pushing into a repository with the same alternate' '
 test_expect_success 'fetching from a repository with the same alternate' '
 	(
 		cd fetcher &&
-		git fetch ../one master:refs/heads/it &&
+		git fetch ../one main:refs/heads/it &&
 		count_objects >../fetcher.count
 	) &&
 	test_cmp one.count fetcher.count
t/t5502-quickfetch.sh +4 -4
index e15a472e4c..8c05c7715b 100755
@@ -2,7 +2,7 @@
 
 test_description='test quickfetch from local'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -111,14 +111,14 @@ test_expect_success 'quickfetch should not copy from alternate' '
 				q
 			}"
 	) ) &&
-	origin_master=$( (
+	origin_main=$( (
 		cd quickclone &&
-		git rev-parse origin/master
+		git rev-parse origin/main
 	) ) &&
 	echo "loose objects: $obj_cnt, packfiles: $pck_cnt" &&
 	test $obj_cnt -eq 0 &&
 	test $pck_cnt -eq 0 &&
-	test z$origin_master = z$(git rev-parse master)
+	test z$origin_main = z$(git rev-parse main)
 
 '
 
t/t5503-tagfollow.sh +7 -7
index 525dd21ecb..195fc64dd4 100755
@@ -2,7 +2,7 @@
 
 test_description='test automatic tag following'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -14,7 +14,7 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 #   L - A ------ O ------ B
 #    \   \                 \
 #     \   C - origin/cat    \
-#      origin/master           master
+#      origin/main           main
 
 test_expect_success setup '
 	test_tick &&
@@ -60,7 +60,7 @@ test_expect_success 'fetch A (new commit : 1 connection)' '
 	(
 		cd cloned &&
 		GIT_TRACE_PACKET=$UPATH git fetch &&
-		test $A = $(git rev-parse --verify origin/master)
+		test $A = $(git rev-parse --verify origin/main)
 	) &&
 	get_needs $U >actual &&
 	test_cmp expect actual
@@ -75,7 +75,7 @@ test_expect_success "create tag T on A, create C on branch cat" '
 	git add file &&
 	git commit -m C &&
 	C=$(git rev-parse --verify HEAD) &&
-	git checkout master
+	git checkout main
 '
 
 test_expect_success 'setup expect' '
@@ -126,7 +126,7 @@ test_expect_success 'fetch B, S (commit and tag : 1 connection)' '
 	(
 		cd cloned &&
 		GIT_TRACE_PACKET=$UPATH git fetch &&
-		test $B = $(git rev-parse --verify origin/master) &&
+		test $B = $(git rev-parse --verify origin/main) &&
 		test $B = $(git rev-parse --verify tag2^0) &&
 		test $S = $(git rev-parse --verify tag2)
 	) &&
@@ -141,7 +141,7 @@ want $S
 EOF
 '
 
-test_expect_success 'new clone fetch master and tags' '
+test_expect_success 'new clone fetch main and tags' '
 	test_might_fail git branch -D cat &&
 	rm -f $U &&
 	(
@@ -150,7 +150,7 @@ test_expect_success 'new clone fetch master and tags' '
 		git init &&
 		git remote add origin .. &&
 		GIT_TRACE_PACKET=$UPATH git fetch &&
-		test $B = $(git rev-parse --verify origin/master) &&
+		test $B = $(git rev-parse --verify origin/main) &&
 		test $S = $(git rev-parse --verify tag2) &&
 		test $B = $(git rev-parse --verify tag2^0) &&
 		test $T = $(git rev-parse --verify tag1) &&
t/t5504-fetch-receive-strict.sh +11 -11
index 7fe21b176d..6e5a9c20e7 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='fetch/receive strict mode'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -28,7 +28,7 @@ test_expect_success 'fetch without strict' '
 		cd dst &&
 		git config fetch.fsckobjects false &&
 		git config transfer.fsckobjects false &&
-		test_must_fail git fetch ../.git master
+		test_must_fail git fetch ../.git main
 	)
 '
 
@@ -39,7 +39,7 @@ test_expect_success 'fetch with !fetch.fsckobjects' '
 		cd dst &&
 		git config fetch.fsckobjects false &&
 		git config transfer.fsckobjects true &&
-		test_must_fail git fetch ../.git master
+		test_must_fail git fetch ../.git main
 	)
 '
 
@@ -50,7 +50,7 @@ test_expect_success 'fetch with fetch.fsckobjects' '
 		cd dst &&
 		git config fetch.fsckobjects true &&
 		git config transfer.fsckobjects false &&
-		test_must_fail git fetch ../.git master
+		test_must_fail git fetch ../.git main
 	)
 '
 
@@ -60,13 +60,13 @@ test_expect_success 'fetch with transfer.fsckobjects' '
 	(
 		cd dst &&
 		git config transfer.fsckobjects true &&
-		test_must_fail git fetch ../.git master
+		test_must_fail git fetch ../.git main
 	)
 '
 
 cat >exp <<EOF
 To dst
-!	refs/heads/master:refs/heads/test	[remote rejected] (missing necessary objects)
+!	refs/heads/main:refs/heads/test	[remote rejected] (missing necessary objects)
 Done
 EOF
 
@@ -78,7 +78,7 @@ test_expect_success 'push without strict' '
 		git config fetch.fsckobjects false &&
 		git config transfer.fsckobjects false
 	) &&
-	test_must_fail git push --porcelain dst master:refs/heads/test >act &&
+	test_must_fail git push --porcelain dst main:refs/heads/test >act &&
 	test_cmp exp act
 '
 
@@ -90,13 +90,13 @@ test_expect_success 'push with !receive.fsckobjects' '
 		git config receive.fsckobjects false &&
 		git config transfer.fsckobjects true
 	) &&
-	test_must_fail git push --porcelain dst master:refs/heads/test >act &&
+	test_must_fail git push --porcelain dst main:refs/heads/test >act &&
 	test_cmp exp act
 '
 
 cat >exp <<EOF
 To dst
-!	refs/heads/master:refs/heads/test	[remote rejected] (unpacker error)
+!	refs/heads/main:refs/heads/test	[remote rejected] (unpacker error)
 EOF
 
 test_expect_success 'push with receive.fsckobjects' '
@@ -107,7 +107,7 @@ test_expect_success 'push with receive.fsckobjects' '
 		git config receive.fsckobjects true &&
 		git config transfer.fsckobjects false
 	) &&
-	test_must_fail git push --porcelain dst master:refs/heads/test >act &&
+	test_must_fail git push --porcelain dst main:refs/heads/test >act &&
 	test_cmp exp act
 '
 
@@ -118,7 +118,7 @@ test_expect_success 'push with transfer.fsckobjects' '
 		cd dst &&
 		git config transfer.fsckobjects true
 	) &&
-	test_must_fail git push --porcelain dst master:refs/heads/test >act &&
+	test_must_fail git push --porcelain dst main:refs/heads/test >act &&
 	test_cmp exp act
 '
 
t/t5505-remote.sh +71 -71

438 lines not on this page · raw message

t/t5506-remote-groups.sh +3 -3
index bf3aa85da5..8f150c0793 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='git remote group handling'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -34,8 +34,8 @@ repo_fetched() {
 test_expect_success 'setup' '
 	mkdir one && (cd one && git init) &&
 	mkdir two && (cd two && git init) &&
-	git remote add -m master one one &&
-	git remote add -m master two two
+	git remote add -m main one one &&
+	git remote add -m main two two
 '
 
 test_expect_success 'no group updates all' '
t/t5509-fetch-push-namespaces.sh +16 -16
index f234dba91a..31553b48df 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='fetch/push involving ref namespaces'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -30,9 +30,9 @@ test_expect_success setup '
 test_expect_success 'pushing into a repository using a ref namespace' '
 	(
 		cd original &&
-		git push pushee-namespaced master &&
+		git push pushee-namespaced main &&
 		git ls-remote pushee-namespaced >actual &&
-		printf "$commit1\trefs/heads/master\n" >expected &&
+		printf "$commit1\trefs/heads/main\n" >expected &&
 		test_cmp expected actual &&
 		git push pushee-namespaced --tags &&
 		git ls-remote pushee-namespaced >actual &&
@@ -59,7 +59,7 @@ test_expect_success 'pulling from a repository using a ref namespace' '
 		cd puller &&
 		git remote add -f pushee-namespaced "ext::git --namespace=namespace %s ../pushee" &&
 		git for-each-ref refs/ >actual &&
-		printf "$commit1 commit\trefs/remotes/pushee-namespaced/master\n" >expected &&
+		printf "$commit1 commit\trefs/remotes/pushee-namespaced/main\n" >expected &&
 		printf "$commit0 commit\trefs/tags/0\n" >>expected &&
 		printf "$commit1 commit\trefs/tags/1\n" >>expected &&
 		test_cmp expected actual
@@ -79,7 +79,7 @@ test_expect_success 'mirroring a repository using a ref namespace' '
 	(
 		cd mirror &&
 		git for-each-ref refs/ >actual &&
-		printf "$commit1 commit\trefs/namespaces/namespace/refs/heads/master\n" >expected &&
+		printf "$commit1 commit\trefs/namespaces/namespace/refs/heads/main\n" >expected &&
 		printf "$commit0 commit\trefs/namespaces/namespace/refs/tags/0\n" >>expected &&
 		printf "$commit1 commit\trefs/namespaces/namespace/refs/tags/1\n" >>expected &&
 		test_cmp expected actual
@@ -90,7 +90,7 @@ test_expect_success 'hide namespaced refs with transfer.hideRefs' '
 	GIT_NAMESPACE=namespace \
 		git -C pushee -c transfer.hideRefs=refs/tags \
 		ls-remote "ext::git %s ." >actual &&
-	printf "$commit1\trefs/heads/master\n" >expected &&
+	printf "$commit1\trefs/heads/main\n" >expected &&
 	test_cmp expected actual
 '
 
@@ -98,7 +98,7 @@ test_expect_success 'check that transfer.hideRefs does not match unstripped refs
 	GIT_NAMESPACE=namespace \
 		git -C pushee -c transfer.hideRefs=refs/namespaces/namespace/refs/tags \
 		ls-remote "ext::git %s ." >actual &&
-	printf "$commit1\trefs/heads/master\n" >expected &&
+	printf "$commit1\trefs/heads/main\n" >expected &&
 	printf "$commit0\trefs/tags/0\n" >>expected &&
 	printf "$commit1\trefs/tags/1\n" >>expected &&
 	test_cmp expected actual
@@ -108,23 +108,23 @@ test_expect_success 'hide full refs with transfer.hideRefs' '
 	GIT_NAMESPACE=namespace \
 		git -C pushee -c transfer.hideRefs="^refs/namespaces/namespace/refs/tags" \
 		ls-remote "ext::git %s ." >actual &&
-	printf "$commit1\trefs/heads/master\n" >expected &&
+	printf "$commit1\trefs/heads/main\n" >expected &&
 	test_cmp expected actual
 '
 
 test_expect_success 'try to update a hidden ref' '
-	test_config -C pushee transfer.hideRefs refs/heads/master &&
-	test_must_fail git -C original push pushee-namespaced master
+	test_config -C pushee transfer.hideRefs refs/heads/main &&
+	test_must_fail git -C original push pushee-namespaced main
 '
 
 test_expect_success 'try to update a ref that is not hidden' '
-	test_config -C pushee transfer.hideRefs refs/namespaces/namespace/refs/heads/master &&
-	git -C original push pushee-namespaced master
+	test_config -C pushee transfer.hideRefs refs/namespaces/namespace/refs/heads/main &&
+	git -C original push pushee-namespaced main
 '
 
 test_expect_success 'try to update a hidden full ref' '
-	test_config -C pushee transfer.hideRefs "^refs/namespaces/namespace/refs/heads/master" &&
-	test_must_fail git -C original push pushee-namespaced master
+	test_config -C pushee transfer.hideRefs "^refs/namespaces/namespace/refs/heads/main" &&
+	test_must_fail git -C original push pushee-namespaced main
 '
 
 test_expect_success 'set up ambiguous HEAD' '
@@ -160,9 +160,9 @@ test_expect_success 'denyCurrentBranch and unborn branch with ref namespace' '
 		cd original &&
 		git init unborn &&
 		git remote add unborn-namespaced "ext::git --namespace=namespace %s unborn" &&
-		test_must_fail git push unborn-namespaced HEAD:master &&
+		test_must_fail git push unborn-namespaced HEAD:main &&
 		git -C unborn config receive.denyCurrentBranch updateInstead &&
-		git push unborn-namespaced HEAD:master
+		git push unborn-namespaced HEAD:main
 	)
 '
 
Signature · 1 line
gitgitgadget
#109 lore raw

PATCH v3 16/28 t55[4-9]*: adjust the references to the default branch name "main"

In reply to Johannes Schindelin via GitGitGadget

From: Johannes Schindelin <[email protected]>

This trick was performed via

	$ (cd t &&
	   sed -i -e 's/master/main/g' -e 's/MASTER/MAIN/g' \
		-e 's/Master/Main/g' -e 's/retsam/niam/g' \
		-- t55[4-9]*.sh t556x*)

This allows us to define GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main for those tests.

Note that t5541 uses the reversed master name: retsam. We replace it by the equivalent for main: niam.

---
 t/t5540-http-push-webdav.sh          | 10 ++--
 t/t5541-http-push-smart.sh           | 42 +++++++-------
 t/t5542-push-http-shallow.sh         | 10 ++--
 t/t5543-atomic-push.sh               | 82 +++++++++++++--------------
 t/t5545-push-options.sh              | 64 ++++++++++-----------
 t/t5548-push-porcelain.sh            | 64 ++++++++++-----------
 t/t5550-http-fetch-dumb.sh           | 22 ++++----
 t/t5551-http-fetch-smart.sh          | 22 ++++----
 t/t5552-skipping-fetch-negotiator.sh |  2 +-
 t/t5553-set-upstream.sh              | 84 ++++++++++++++--------------
 t/t5560-http-backend-noserver.sh     |  2 +-
 t/t5561-http-backend.sh              |  6 +-
 t/t556x_common                       |  8 +--
 t/t5570-git-daemon.sh                | 18 +++---
 t/t5571-pre-push-hook.sh             |  6 +-
 t/t5572-pull-submodule.sh            |  4 +-
 t/t5580-unc-paths.sh                 |  4 +-
 t/t5581-http-curl-verbose.sh         |  4 +-
 t/t5582-fetch-negative-refspec.sh    | 24 ++++----
 19 files changed, 239 insertions(+), 239 deletions(-)
t/t5540-http-push-webdav.sh +5 -5
index 751116e123..8b68bb38a4 100755
@@ -7,7 +7,7 @@ test_description='test WebDAV http-push
 
 This test runs various sanity checks on http-push.'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -74,7 +74,7 @@ test_expect_success 'push already up-to-date' '
 test_expect_success 'push to remote repository with unpacked refs' '
 	(cd "$HTTPD_DOCUMENT_ROOT_PATH"/test_repo.git &&
 	 rm packed-refs &&
-	 git update-ref refs/heads/master $ORIG_HEAD &&
+	 git update-ref refs/heads/main $ORIG_HEAD &&
 	 git --bare update-server-info) &&
 	git push &&
 	(cd "$HTTPD_DOCUMENT_ROOT_PATH"/test_repo.git &&
@@ -94,7 +94,7 @@ test_expect_success 'http-push fetches unpacked objects' '
 	 git remote rm origin &&
 	 git reflog expire --expire=0 --all &&
 	 git prune &&
-	 git push -f -v $HTTPD_URL/dumb/test_repo_unpacked.git master)
+	 git push -f -v $HTTPD_URL/dumb/test_repo_unpacked.git main)
 '
 
 test_expect_success 'http-push fetches packed objects' '
@@ -114,7 +114,7 @@ test_expect_success 'http-push fetches packed objects' '
 	 git remote remove origin &&
 	 git reflog expire --expire=0 --all &&
 	 git prune &&
-	 git push -f -v $HTTPD_URL/dumb/test_repo_packed.git master)
+	 git push -f -v $HTTPD_URL/dumb/test_repo_packed.git main)
 '
 
 test_expect_success 'create and delete remote branch' '
@@ -166,7 +166,7 @@ test_expect_success 'PUT and MOVE sends object to URLs with SHA-1 hash suffix' '
 '
 
 test_http_push_nonff "$HTTPD_DOCUMENT_ROOT_PATH"/test_repo.git \
-	"$ROOT_PATH"/test_repo_clone master
+	"$ROOT_PATH"/test_repo_clone main
 
 test_expect_success 'push to password-protected repository (user in URL)' '
 	test_commit pw-user &&
t/t5541-http-push-smart.sh +21 -21

120 lines not on this page · raw message

t/t5542-push-http-shallow.sh +5 -5
index 0feec9c449..c2cc83182f 100755
@@ -2,7 +2,7 @@
 
 test_description='push from/to a shallow clone over http'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -54,12 +54,12 @@ test_expect_success 'push to shallow repo via http' '
 	(
 	cd full &&
 	commit 9 &&
-	git push $HTTPD_URL/smart/repo.git +master:refs/remotes/top/master
+	git push $HTTPD_URL/smart/repo.git +main:refs/remotes/top/main
 	) &&
 	(
 	cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
 	git fsck &&
-	git log --format=%s top/master >actual &&
+	git log --format=%s top/main >actual &&
 	cat <<EOF >expect &&
 9
 4
@@ -77,11 +77,11 @@ test_expect_success 'push from shallow repo via http' '
 	git config http.receivepack true
 	) &&
 	commit 10 &&
-	git push $HTTPD_URL/smart/repo.git +master:refs/remotes/top/master &&
+	git push $HTTPD_URL/smart/repo.git +main:refs/remotes/top/main &&
 	(
 	cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
 	git fsck &&
-	git log --format=%s top/master >actual &&
+	git log --format=%s top/main >actual &&
 	cat <<EOF >expect &&
 10
 4
t/t5543-atomic-push.sh +41 -41

231 lines not on this page · raw message

t/t5545-push-options.sh +32 -32

167 lines not on this page · raw message

t/t5548-push-porcelain.sh +32 -32

174 lines not on this page · raw message

t/t5550-http-fetch-dumb.sh +11 -11
index 9ec91792c3..2ecb06bb63 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='test dumb fetching over http via static file'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -29,7 +29,7 @@ test_expect_success 'create http-accessible bare repository with loose objects'
 	 hooks/post-update
 	) &&
 	git remote add public "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
-	git push public master:master
+	git push public main:main
 '
 
 test_expect_success 'clone http repository' '
@@ -40,8 +40,8 @@ test_expect_success 'clone http repository' '
 
 test_expect_success 'list refs from outside any repository' '
 	cat >expect <<-EOF &&
-	$(git rev-parse master)	HEAD
-	$(git rev-parse master)	refs/heads/master
+	$(git rev-parse main)	HEAD
+	$(git rev-parse main)	refs/heads/main
 	EOF
 	nongit git ls-remote "$HTTPD_URL/dumb/repo.git" >actual &&
 	test_cmp expect actual
@@ -184,8 +184,8 @@ test_expect_success 'fetch changes via manual http-fetch' '
 
 	HEAD=$(git rev-parse --verify HEAD) &&
 	(cd clone2 &&
-	 git http-fetch -a -w heads/master-new $HEAD $(git config remote.origin.url) &&
-	 git checkout master-new &&
+	 git http-fetch -a -w heads/main-new $HEAD $(git config remote.origin.url) &&
+	 git checkout main-new &&
 	 test $HEAD = $(git rev-parse --verify HEAD)) &&
 	test_cmp file clone2/file
 '
@@ -195,19 +195,19 @@ test_expect_success 'manual http-fetch without -a works just as well' '
 
 	HEAD=$(git rev-parse --verify HEAD) &&
 	(cd clone3 &&
-	 git http-fetch -w heads/master-new $HEAD $(git config remote.origin.url) &&
-	 git checkout master-new &&
+	 git http-fetch -w heads/main-new $HEAD $(git config remote.origin.url) &&
+	 git checkout main-new &&
 	 test $HEAD = $(git rev-parse --verify HEAD)) &&
 	test_cmp file clone3/file
 '
 
 test_expect_success 'http remote detects correct HEAD' '
-	git push public master:other &&
+	git push public main:other &&
 	(cd clone &&
 	 git remote set-head origin -d &&
 	 git remote set-head origin -a &&
 	 git symbolic-ref refs/remotes/origin/HEAD > output &&
-	 echo refs/remotes/origin/master > expect &&
+	 echo refs/remotes/origin/main > expect &&
 	 test_cmp expect output
 	)
 '
@@ -419,7 +419,7 @@ test_expect_success 'set up evil alternates scheme' '
 	evil=$HTTPD_DOCUMENT_ROOT_PATH/evil.git &&
 	git init --bare "$evil" &&
 	# do this by hand to avoid object existence check
-	printf "%s\\t%s\\n" $sha1 refs/heads/master >"$evil/info/refs"
+	printf "%s\\t%s\\n" $sha1 refs/heads/main >"$evil/info/refs"
 '
 
 # Here we'll just redirect via HTTP. In a real-world attack these would be on
t/t5551-http-fetch-smart.sh +11 -11
index 310b89dbab..984dba22af 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='test smart fetching over http via http-backend'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -21,7 +21,7 @@ test_expect_success 'create http-accessible bare repository' '
 	 git --bare init
 	) &&
 	git remote add public "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
-	git push public master:master
+	git push public main:main
 '
 
 setup_askpass_helper
@@ -241,9 +241,9 @@ test_expect_success 'invalid Content-Type rejected' '
 
 test_expect_success 'create namespaced refs' '
 	test_commit namespaced &&
-	git push public HEAD:refs/namespaces/ns/refs/heads/master &&
+	git push public HEAD:refs/namespaces/ns/refs/heads/main &&
 	git --git-dir="$HTTPD_DOCUMENT_ROOT_PATH/repo.git" \
-		symbolic-ref refs/namespaces/ns/HEAD refs/namespaces/ns/refs/heads/master
+		symbolic-ref refs/namespaces/ns/HEAD refs/namespaces/ns/refs/heads/main
 '
 
 test_expect_success 'smart clone respects namespace' '
@@ -274,7 +274,7 @@ test_expect_success 'cookies stored in http.cookiefile when http.savecookies set
 	EOF
 	git config http.cookiefile cookies.txt &&
 	git config http.savecookies true &&
-	git ls-remote $HTTPD_URL/smart_cookies/repo.git master &&
+	git ls-remote $HTTPD_URL/smart_cookies/repo.git main &&
 
 	# NEEDSWORK: If the overspecification of the expected result is reduced, we
 	# might be able to run this test in all protocol versions.
@@ -347,12 +347,12 @@ test_expect_success 'large fetch-pack requests can be sent using chunked encodin
 test_expect_success 'test allowreachablesha1inwant' '
 	test_when_finished "rm -rf test_reachable.git" &&
 	server="$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
-	master_sha=$(git -C "$server" rev-parse refs/heads/master) &&
+	main_sha=$(git -C "$server" rev-parse refs/heads/main) &&
 	git -C "$server" config uploadpack.allowreachablesha1inwant 1 &&
 
 	git init --bare test_reachable.git &&
 	git -C test_reachable.git remote add origin "$HTTPD_URL/smart/repo.git" &&
-	git -C test_reachable.git fetch origin "$master_sha"
+	git -C test_reachable.git fetch origin "$main_sha"
 '
 
 test_expect_success 'test allowreachablesha1inwant with unreachable' '
@@ -366,7 +366,7 @@ test_expect_success 'test allowreachablesha1inwant with unreachable' '
 	git push public :refs/heads/doomed &&
 
 	server="$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
-	master_sha=$(git -C "$server" rev-parse refs/heads/master) &&
+	main_sha=$(git -C "$server" rev-parse refs/heads/main) &&
 	git -C "$server" config uploadpack.allowreachablesha1inwant 1 &&
 
 	git init --bare test_reachable.git &&
@@ -388,7 +388,7 @@ test_expect_success 'test allowanysha1inwant with unreachable' '
 	git push public :refs/heads/doomed &&
 
 	server="$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
-	master_sha=$(git -C "$server" rev-parse refs/heads/master) &&
+	main_sha=$(git -C "$server" rev-parse refs/heads/main) &&
 	git -C "$server" config uploadpack.allowreachablesha1inwant 1 &&
 
 	git init --bare test_reachable.git &&
@@ -447,8 +447,8 @@ test_expect_success 'using fetch command in remote-curl updates refs' '
 	test_commit -C "$SERVER" bar &&
 	git -C client -c protocol.version=0 fetch &&
 
-	git -C "$SERVER" rev-parse master >expect &&
-	git -C client rev-parse origin/master >actual &&
+	git -C "$SERVER" rev-parse main >expect &&
+	git -C client rev-parse origin/main >actual &&
 	test_cmp expect actual
 '
 
t/t5552-skipping-fetch-negotiator.sh +1 -1
index 156c704040..7b9fb4ff02 100755
@@ -100,7 +100,7 @@ test_expect_success 'use ref advertisement to filter out commits' '
 	git -C server checkout --orphan anotherbranch &&
 	test_commit -C server to_fetch &&
 
-	# The server advertising "c3" (as "refs/heads/master") means that we do
+	# The server advertising "c3" (as "refs/heads/main") means that we do
 	# not need to send any ancestors of "c3", but we still need to send "c3"
 	# itself.
 	test_config -C client fetch.negotiationalgorithm skipping &&
t/t5553-set-upstream.sh +42 -42

180 lines not on this page · raw message

t/t5560-http-backend-noserver.sh +1 -1
index 5561b7d012..d30cf4f5b8 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='test git-http-backend-noserver'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
t/t5561-http-backend.sh +3 -3
index cba2dffdb0..9c57d84315 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='test git-http-backend'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -42,9 +42,9 @@ POST() {
 
 grep '^[^#]' >exp <<EOF
 
-###  refs/heads/master
+###  refs/heads/main
 ###
-GET  /smart/repo.git/refs/heads/master HTTP/1.1 404 -
+GET  /smart/repo.git/refs/heads/main HTTP/1.1 404 -
 
 ###  getanyfile default
 ###
t/t556x_common +4 -4
index 359fcfe32b..670fb89477 100755
@@ -22,7 +22,7 @@ test_expect_success 'setup repository' '
 	 : >objects/info/http-alternates
 	) &&
 	git remote add public "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
-	git push public master:master &&
+	git push public main:main &&
 
 	(cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
 	 git repack -a -d
@@ -31,7 +31,7 @@ test_expect_success 'setup repository' '
 	echo other >file &&
 	git add file &&
 	git commit -m two &&
-	git push public master:master &&
+	git push public main:main &&
 
 	LOOSE_URL=$(find_file objects/??) &&
 	PACK_URL=$(find_file objects/pack/*.pack) &&
@@ -51,8 +51,8 @@ get_static_files() {
 
 SMART=smart
 GIT_HTTP_EXPORT_ALL=1 && export GIT_HTTP_EXPORT_ALL
-test_expect_success 'direct refs/heads/master not found' '
-	GET refs/heads/master "404 Not Found"
+test_expect_success 'direct refs/heads/main not found' '
+	GET refs/heads/main "404 Not Found"
 '
 test_expect_success 'static file is ok' '
 	get_static_files "200 OK"
t/t5570-git-daemon.sh +9 -9
index 2e99a331c5..3332a0c595 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='test fetching over git protocol'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -29,7 +29,7 @@ test_expect_success 'create git-accessible bare repository' '
 	 : >git-daemon-export-ok
 	) &&
 	git remote add public "$GIT_DAEMON_DOCUMENT_ROOT_PATH/repo.git" &&
-	git push public master:master
+	git push public main:main
 '
 
 test_expect_success 'clone git repository' '
@@ -58,12 +58,12 @@ test_expect_success 'no-op fetch without "-v" is quiet' '
 '
 
 test_expect_success 'remote detects correct HEAD' '
-	git push public master:other &&
+	git push public main:other &&
 	(cd clone &&
 	 git remote set-head -d origin &&
 	 git remote set-head -a origin &&
 	 git symbolic-ref refs/remotes/origin/HEAD > output &&
-	 echo refs/remotes/origin/master > expect &&
+	 echo refs/remotes/origin/main > expect &&
 	 test_cmp expect output
 	)
 '
@@ -151,7 +151,7 @@ test_remote_error()
 
 msg="access denied or repository not exported"
 test_expect_success 'clone non-existent' "test_remote_error    '$msg' clone nowhere.git"
-test_expect_success 'push disabled'      "test_remote_error    '$msg' push  repo.git master"
+test_expect_success 'push disabled'      "test_remote_error    '$msg' push  repo.git main"
 test_expect_success 'read access denied' "test_remote_error -x '$msg' fetch repo.git"
 test_expect_success 'not exported'       "test_remote_error -n '$msg' fetch repo.git"
 
@@ -159,7 +159,7 @@ stop_git_daemon
 start_git_daemon --informative-errors
 
 test_expect_success 'clone non-existent' "test_remote_error    'no such repository'      clone nowhere.git"
-test_expect_success 'push disabled'      "test_remote_error    'service not enabled'     push  repo.git master"
+test_expect_success 'push disabled'      "test_remote_error    'service not enabled'     push  repo.git main"
 test_expect_success 'read access denied' "test_remote_error -x 'no such repository'      fetch repo.git"
 test_expect_success 'not exported'       "test_remote_error -n 'repository not exported' fetch repo.git"
 
@@ -195,10 +195,10 @@ test_expect_success FAKENC 'hostname interpolation works after LF-stripping' '
 	fake_nc "$GIT_DAEMON_HOST_PORT" <input >output &&
 	depacketize <output >output.raw &&
 
-	# just pick out the value of master, which avoids any protocol
+	# just pick out the value of main, which avoids any protocol
 	# particulars
-	perl -lne "print \$1 if m{^(\\S+) refs/heads/master}" <output.raw >actual &&
-	git -C "$repo" rev-parse master >expect &&
+	perl -lne "print \$1 if m{^(\\S+) refs/heads/main}" <output.raw >actual &&
+	git -C "$repo" rev-parse main >expect &&
 	test_cmp expect actual
 '
 
t/t5571-pre-push-hook.sh +3 -3
index 971ed3da4b..ad8d5804f7 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='check pre-push hooks'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -51,11 +51,11 @@ EOF
 cat >expected <<EOF
 parent1
 repo1
-refs/heads/master $COMMIT2 refs/heads/foreign $COMMIT1
+refs/heads/main $COMMIT2 refs/heads/foreign $COMMIT1
 EOF
 
 test_expect_success 'push with hook' '
-	git push parent1 master:foreign &&
+	git push parent1 main:foreign &&
 	diff expected actual
 '
 
t/t5572-pull-submodule.sh +2 -2
index 1d75e3b12b..d6a75964d8 100755
@@ -148,8 +148,8 @@ test_expect_success 'branch has no merge base with remote-tracking counterpart'
 
 	git clone parent child &&
 
-	# Reset master so that it has no merge base with
-	# refs/remotes/origin/master.
+	# Reset main so that it has no merge base with
+	# refs/remotes/origin/main.
 	OTHER=$(git -C child commit-tree -m bar \
 		$(git -C child rev-parse HEAD^{tree})) &&
 	git -C child reset --hard "$OTHER" &&
t/t5580-unc-paths.sh +2 -2
index da4c94cce1..cd803ae8bf 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='various Windows-only path tests'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -56,7 +56,7 @@ test_expect_success fetch '
 	git init to-fetch &&
 	(
 		cd to-fetch &&
-		git fetch "$UNCPATH" master
+		git fetch "$UNCPATH" main
 	)
 '
 
t/t5581-http-curl-verbose.sh +2 -2
index 907bb062d6..cded79c16b 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 test_description='test GIT_CURL_VERBOSE'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -16,7 +16,7 @@ test_expect_success 'setup repository' '
 	git add file &&
 	git commit -m one &&
 	git remote add public "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
-	git push public master:master
+	git push public main:main
 '
 
 test_expect_success 'failure in git-upload-pack is shown' '
t/t5582-fetch-negative-refspec.sh +12 -12
index 608e9aa189..6af143c140 100755
@@ -5,7 +5,7 @@ test_description='"git fetch" with negative refspecs.
 
 '
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -25,12 +25,12 @@ test_expect_success "clone and setup child repos" '
 		git switch -c alternate &&
 		echo >file updated again by one &&
 		git commit -a -m "updated by one again" &&
-		git switch master
+		git switch main
 	) &&
 	git clone . two &&
 	(
 		cd two &&
-		git config branch.master.remote one &&
+		git config branch.main.remote one &&
 		git config remote.one.url ../one/.git/ &&
 		git config remote.one.fetch +refs/heads/*:refs/remotes/one/* &&
 		git config --add remote.one.fetch ^refs/heads/alternate
@@ -46,9 +46,9 @@ test_expect_success "fetch one" '
 		test_must_fail git rev-parse --verify refs/remotes/one/alternate &&
 		git fetch one &&
 		test_must_fail git rev-parse --verify refs/remotes/one/alternate &&
-		git rev-parse --verify refs/remotes/one/master &&
-		mine=$(git rev-parse refs/remotes/one/master) &&
-		his=$(cd ../one && git rev-parse refs/heads/master) &&
+		git rev-parse --verify refs/remotes/one/main &&
+		mine=$(git rev-parse refs/remotes/one/main) &&
+		his=$(cd ../one && git rev-parse refs/heads/main) &&
 		test "z$mine" = "z$his"
 	)
 '
@@ -60,7 +60,7 @@ test_expect_success "fetch with negative refspec on commandline" '
 		cd three &&
 		alternate_in_one=$(cd ../one && git rev-parse refs/heads/alternate) &&
 		echo $alternate_in_one >expect &&
-		git fetch ../one/.git refs/heads/*:refs/remotes/one/* ^refs/heads/master &&
+		git fetch ../one/.git refs/heads/*:refs/remotes/one/* ^refs/heads/main &&
 		cut -f -1 .git/FETCH_HEAD >actual &&
 		test_cmp expect actual
 	)
@@ -71,8 +71,8 @@ test_expect_success "fetch with negative sha1 refspec fails" '
 	git commit -a -m "updated by origin yet again" &&
 	(
 		cd three &&
-		master_in_one=$(cd ../one && git rev-parse refs/heads/master) &&
-		test_must_fail git fetch ../one/.git refs/heads/*:refs/remotes/one/* ^$master_in_one
+		main_in_one=$(cd ../one && git rev-parse refs/heads/main) &&
+		test_must_fail git fetch ../one/.git refs/heads/*:refs/remotes/one/* ^$main_in_one
 	)
 '
 
@@ -95,10 +95,10 @@ test_expect_success "fetch with negative pattern refspec does not expand prefix"
 	(
 		cd three &&
 		alternate_in_one=$(cd ../one && git rev-parse refs/heads/alternate) &&
-		master_in_one=$(cd ../one && git rev-parse refs/heads/master) &&
+		main_in_one=$(cd ../one && git rev-parse refs/heads/main) &&
 		echo $alternate_in_one >expect &&
-		echo $master_in_one >>expect &&
-		git fetch ../one/.git refs/heads/*:refs/remotes/one/* ^master &&
+		echo $main_in_one >>expect &&
+		git fetch ../one/.git refs/heads/*:refs/remotes/one/* ^main &&
 		cut -f -1 .git/FETCH_HEAD >actual &&
 		test_cmp expect actual
 	)
Signature · 1 line
gitgitgadget