]> git.ipfire.org Git - thirdparty/git.git/commit
tests: avoid variations of the `master` branch name
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 26 Sep 2020 21:04:21 +0000 (21:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 27 Sep 2020 00:03:29 +0000 (17:03 -0700)
commitb6211b89eb3aee35afdcb1788869b5cf4b04a850
treec04ccd843d909f3a8c4609d444a83fa2879d3553
parent432f5e638d00fc9175594c73c1a9e81af1928872
tests: avoid variations of the `master` branch name

The term `master` has a loaded history that serves as a constant
reminder of racial injustice. The Git project has no desire to
perpetuate this and already started avoiding it.

The test suite uses variations of this name for branches other than the
default one. Apart from t3200, where we just addressed this in the
previous commit, those instances can be renamed in an automated manner
because they do not require any changes outside of the test script, so
let's do that.

Seeing as the touched branches have very little (if anything) to do with
the default branch, we choose to use a completely separate naming
scheme: `topic_<number>` (it cannot be `topic-<number>` because t5515
uses the `test_oid` machinery with the term, and that machinery uses
shell variables internally, whose names cannot contain dashes).

This trick was performed by this (GNU) sed invocation:

$ sed -i 's/master\([a-z0-9]\)/topic_\1/g' t/t*.sh

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3427-rebase-subtree.sh
t/t4150-am.sh
t/t5515-fetch-merge-logic.sh
t/t5523-push-upstream.sh
t/t6018-rev-list-glob.sh
t/t6040-tracking-info.sh
t/t6409-merge-subtree.sh