mirror of
https://github.com/git/git.git
synced 2026-01-10 10:13:33 +00:00
t3[5-9]*: adjust the references 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[5-9]*.sh) This allows us to define `GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main` for those tests. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
d1c02d93b3
commit
cbc75a12f0
@@ -9,7 +9,7 @@ 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
|
||||
@@ -32,7 +32,7 @@ test_expect_success setup '
|
||||
test_commit redundant-pick foo c redundant &&
|
||||
git commit --allow-empty --allow-empty-message &&
|
||||
git tag empty &&
|
||||
git checkout master &&
|
||||
git checkout main &&
|
||||
git config advice.detachedhead false
|
||||
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user