Skip to content

Commit 557b2bd

Browse files
committed
Merge branch 'js/test-initial-branch-override-cleanup'
Many tests that used to need GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME mechanism to force "git" to use 'master' as the default name for the initial branch no longer need it; the use of the mechanism from them have been removed. * js/test-initial-branch-override-cleanup: tests: set GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME only when needed
2 parents 986eb34 + 9f35478 commit 557b2bd

17 files changed

+0
-50
lines changed

t/t1022-read-tree-partial-clone.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ test_description='git read-tree in partial clones'
44

55
TEST_NO_CREATE_REPO=1
66

7-
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
8-
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9-
107
. ./test-lib.sh
118

129
test_expect_success 'read-tree in partial clone prefetches in one batch' '

t/t1400-update-ref.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
#
55

66
test_description='Test git update-ref and basic ref logging'
7-
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
8-
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9-
107
. ./test-lib.sh
118

129
Z=$ZERO_OID

t/t3201-branch-contains.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
test_description='branch --contains <commit>, --no-contains <commit> --merged, and --no-merged'
44

5-
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
6-
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7-
85
. ./test-lib.sh
96

107
test_expect_success setup '

t/t3203-branch-output.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/bin/sh
22

33
test_description='git branch display tests'
4-
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
5-
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6-
74
. ./test-lib.sh
85
. "$TEST_DIRECTORY"/lib-terminal.sh
96

t/t3205-branch-color.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/bin/sh
22

33
test_description='basic branch output coloring'
4-
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
5-
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6-
74
TEST_PASSES_SANITIZE_LEAK=true
85
. ./test-lib.sh
96

t/t3404-rebase-interactive.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ Initial setup:
2525
where A, B, D and G all touch file1, and one, two, three, four all
2626
touch file "conflict".
2727
'
28-
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
29-
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
3028

3129
. ./test-lib.sh
3230

t/t5310-pack-bitmaps.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/sh
22

33
test_description='exercise basic bitmap functionality'
4-
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5-
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
64

75
. ./test-lib.sh
86
. "$TEST_DIRECTORY"/lib-bitmap.sh

t/t5505-remote.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
test_description='git remote porcelain-ish'
44

5-
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
6-
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7-
85
. ./test-lib.sh
96

107
setup_repository () {

t/t5510-fetch.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ test_description='Per branch config variables affects "git fetch".
55
66
'
77

8-
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
9-
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10-
118
. ./test-lib.sh
129
. "$TEST_DIRECTORY"/lib-bundle.sh
1310

t/t5526-fetch-submodules.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
test_description='Recursive "git fetch" for submodules'
55

6-
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
7-
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
8-
96
GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB=1
107
export GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB
118

0 commit comments

Comments
 (0)