t55[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' -e 's/retsam/niam/g' \ -- t55[4-9]*.sh t556x*) This allows us to define `GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main` for those tests. Note that t5541 uses the reversed `master` name: `retsam`. We replace it by the equivalent for `main`: `niam`. 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
3ac8f6301e
commit
028cb644ec
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
test_description='test git-http-backend'
|
||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
|
||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
. ./test-lib.sh
|
||||
@ -42,9 +42,9 @@ POST() {
|
||||
|
||||
grep '^[^#]' >exp <<EOF
|
||||
|
||||
### refs/heads/master
|
||||
### refs/heads/main
|
||||
###
|
||||
GET /smart/repo.git/refs/heads/master HTTP/1.1 404 -
|
||||
GET /smart/repo.git/refs/heads/main HTTP/1.1 404 -
|
||||
|
||||
### getanyfile default
|
||||
###
|
||||
|
Reference in New Issue
Block a user