t6[4-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' -- t6[4-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
1f53df54eb
commit
5902f5f460
@ -1,7 +1,7 @@
|
||||
#!/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
|
||||
@ -22,11 +22,11 @@ test_expect_success 'setup tests' '
|
||||
git add a1 &&
|
||||
GIT_AUTHOR_DATE="2006-12-12 23:00:00" git commit -m 1 a1 &&
|
||||
|
||||
git checkout -b A master &&
|
||||
git checkout -b A main &&
|
||||
echo A >a1 &&
|
||||
GIT_AUTHOR_DATE="2006-12-12 23:00:01" git commit -m A a1 &&
|
||||
|
||||
git checkout -b B master &&
|
||||
git checkout -b B main &&
|
||||
echo B >a1 &&
|
||||
GIT_AUTHOR_DATE="2006-12-12 23:00:02" git commit -m B a1 &&
|
||||
|
||||
|
||||
Reference in New Issue
Block a user