t5[0-4]*: adjust the references to the default branch name "main"
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. 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
4b071211e6
commit
966b4be276
@ -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 &&
|
||||
|
Reference in New Issue
Block a user