t9[0-4]*: 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' -- t9[0-4]*.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
747f6c6805
commit
a881baa2c3
@ -1,7 +1,7 @@
|
||||
#!/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
|
||||
@ -17,7 +17,7 @@ test_expect_success 'setup commit repository' '
|
||||
p=$(git rev-parse HEAD) &&
|
||||
t=$(git write-tree) &&
|
||||
cmt=$(git commit-tree -p $p $t <cmt) &&
|
||||
git update-ref refs/heads/master $cmt &&
|
||||
git update-ref refs/heads/main $cmt &&
|
||||
git cat-file commit HEAD | tail -n4 >out &&
|
||||
test_cmp cmt out &&
|
||||
git svn dcommit &&
|
||||
|
||||
Reference in New Issue
Block a user