tests: mark tests relying on the current default for `init.defaultBranch`

In addition to the manual adjustment to let the `linux-gcc` CI job run the test suite with `master` and then with `main`, this patch makes sure that GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME is set in all test scripts that currently rely on the initial branch name being `master by default. To determine which test scripts to mark up, the first step was to force-set the default branch name to `master` in - all test scripts that contain the keyword `master`, - t4211, which expects `t/t4211/history.export` with a hard-coded ref to initialize the default branch, - t5560 because it sources `t/t556x_common` which uses `master`, - t8002 and t8012 because both source `t/annotate-tests.sh` which also uses `master`) This trick was performed by this command: $ sed -i '/^ *\. \.\/\(test-lib\|lib-\(bash\|cvs\|git-svn\)\|gitweb-lib\)\.sh$/i\ GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master\ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME\ ' $(git grep -l master t/t[0-9]*.sh) \ t/t4211*.sh t/t5560*.sh t/t8002*.sh t/t8012*.sh After that, careful, manual inspection revealed that some of the test scripts containing the needle `master` do not actually rely on a specific default branch name: either they mention `master` only in a comment, or they initialize that branch specificially, or they do not actually refer to the current default branch. Therefore, the aforementioned modification was undone in those test scripts thusly: $ git checkout HEAD -- \ t/t0027-auto-crlf.sh t/t0060-path-utils.sh \ t/t1011-read-tree-sparse-checkout.sh \ t/t1305-config-include.sh t/t1309-early-config.sh \ t/t1402-check-ref-format.sh t/t1450-fsck.sh \ t/t2024-checkout-dwim.sh \ t/t2106-update-index-assume-unchanged.sh \ t/t3040-subprojects-basic.sh t/t3301-notes.sh \ t/t3308-notes-merge.sh t/t3423-rebase-reword.sh \ t/t3436-rebase-more-options.sh \ t/t4015-diff-whitespace.sh t/t4257-am-interactive.sh \ t/t5323-pack-redundant.sh t/t5401-update-hooks.sh \ t/t5511-refspec.sh t/t5526-fetch-submodules.sh \ t/t5529-push-errors.sh t/t5530-upload-pack-error.sh \ t/t5548-push-porcelain.sh \ t/t5552-skipping-fetch-negotiator.sh \ t/t5572-pull-submodule.sh t/t5608-clone-2gb.sh \ t/t5614-clone-submodules-shallow.sh \ t/t7508-status.sh t/t7606-merge-custom.sh \ t/t9302-fast-import-unpack-limit.sh We excluded one set of test scripts in these commands, though: the range of `git p4` tests. The reason? `git p4` stores the (foreign) remote branch in the branch called `p4/master`, which is obviously not the default branch. Manual analysis revealed that only five of these tests actually require a specific default branch name to pass; They were modified thusly: $ sed -i '/^ *\. \.\/lib-git-p4\.sh$/i\ GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master\ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME\ ' t/t980[0167]*.sh t/t9811*.sh Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Nov 18, 2020 at 23:44 UTC 334afbc76fbd4a8d850946a2b450ba036365b554
325 files changed +974
ci/run-build-and-tests.sh
+2
@@ -13,6 +13,7 @@ esac
13 make
14 case "$jobname" in
15 linux-gcc)
16 + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
17 make test
18 export GIT_TEST_SPLIT_INDEX=yes
19 export GIT_TEST_FULL_IN_PACK_ARRAY=true
@@ -22,6 +23,7 @@ linux-gcc)
23 export GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=1
24 export GIT_TEST_MULTI_PACK_INDEX=1
25 export GIT_TEST_ADD_I_USE_BUILTIN=1
26 + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
27 make test
28 ;;
29 linux-clang)
t/t0002-gitfile.sh
+3
@@ -4,6 +4,9 @@ test_description='.git file
4
5 Verify that plumbing commands work when .git is a file
6 '
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 objpath() {
t/t0020-crlf.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='CRLF conversion'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 has_cr() {
t/t0021-conversion.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='blob conversion via gitattributes'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 TEST_ROOT="$PWD"
t/t0028-working-tree-encoding.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='working-tree-encoding conversion via gitattributes'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 GIT_TRACE_WORKING_TREE_ENCODING=1 && export GIT_TRACE_WORKING_TREE_ENCODING
t/t0041-usage.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='Test commands behavior when given invalid argument value'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup ' '
t/t0050-filesystem.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='Various filesystem issues'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 auml=$(printf '\303\244')
t/t0100-previous.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='previous branch syntax @{-n}'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'branch -d @{-1}' '
t/t1004-read-tree-m-u-wf.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='read-tree -m -u checks working tree files'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9 . "$TEST_DIRECTORY"/lib-read-tree.sh
10
t/t1008-read-tree-overlay.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test multi-tree read-tree without merging'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9 . "$TEST_DIRECTORY"/lib-read-tree.sh
10
t/t1009-read-tree-new-index.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test read-tree into a fresh index file'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t1021-rerere-in-workdir.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='rerere run in a workdir'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success SYMLINKS setup '
t/t1090-sparse-checkout-scope.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='sparse checkout scope tests'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t1091-sparse-checkout-builtin.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='sparse checkout builtin tests'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 list_files() {
t/t1300-config.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='Test git config in different settings'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 test_expect_success 'clear default config' '
t/t1301-shared-repo.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='Test shared repository initialization'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 # Remove a default ACL from the test dir if possible.
t/t1400-update-ref.sh
+3
@@ -4,6 +4,9 @@
4 #
5
6 test_description='Test git update-ref and basic ref logging'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 Z=$ZERO_OID
t/t1403-show-ref.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='show-ref'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success setup '
t/t1405-main-ref-store.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test main ref store api'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 RUN="test-tool ref-store main"
t/t1406-submodule-ref-store.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test submodule ref store api'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 RUN="test-tool ref-store submodule:sub"
t/t1407-worktree-ref-store.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test worktree ref store api'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 RWT="test-tool ref-store worktree:wt"
t/t1408-packed-refs.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='packed-refs entries are covered by loose refs'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t1410-reflog.sh
+3
@@ -4,6 +4,9 @@
4 #
5
6 test_description='Test prune and reflog expiration'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 check_have () {
t/t1411-reflog-show.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='Test reflog display routines'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'setup' '
t/t1413-reflog-detach.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='Test reflog interaction with detached HEAD'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 reset_state () {
t/t1414-reflog-walk.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='various tests of reflog walk (log -g) behavior'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'set up some reflog entries' '
t/t1416-ref-transaction-hooks.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='reference transaction hooks'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t1430-bad-ref-name.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='Test handling of ref names that check-ref-format rejects'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success setup '
t/t1500-rev-parse.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test git rev-parse'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 # usage: [options] label is-bare is-inside-git is-inside-work prefix git-dir absolute-git-dir
t/t1503-rev-parse-verify.sh
+3
@@ -6,6 +6,9 @@ test_description='test git rev-parse --verify'
6
7 exec </dev/null
8
9 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
10 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
11 +
12 . ./test-lib.sh
13
14 add_line_into_file()
t/t1505-rev-parse-last.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test @{-N} syntax'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10
t/t1506-rev-parse-diagnosis.sh
+3
@@ -4,6 +4,9 @@ test_description='test git rev-parse diagnosis for invalid argument'
4
5 exec </dev/null
6
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 test_did_you_mean ()
t/t1507-rev-parse-upstream.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test <branch>@{upstream} syntax'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10
t/t1508-at-combinations.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test various @{X} syntax combinations together'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 check() {
t/t1511-rev-parse-caret.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='tests for ref^{stuff}'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t1512-rev-parse-disambiguation.sh
+3
@@ -20,6 +20,9 @@ one tagged as v1.0.0. They all have one regular file each.
20
21 '
22
23 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
24 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
25 +
26 . ./test-lib.sh
27
28 if ! test_have_prereq SHA1
t/t1513-rev-parse-prefix.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='Tests for rev-parse --prefix'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t1514-rev-parse-push.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test <branch>@{push} syntax'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 resolve () {
t/t1700-split-index.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='split index mode tests'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 # We need total control of index splitting here
t/t2007-checkout-symlink.sh
+3
@@ -4,6 +4,9 @@
4
5 test_description='git checkout to switch between branches with symlink<->dir'
6
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 test_expect_success setup '
t/t2009-checkout-statinfo.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='checkout should leave clean stat info'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t2010-checkout-ambiguous.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='checkout and pathspecs/refspecs ambiguities'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t2011-checkout-invalid-head.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='checkout switching away from an invalid branch'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t2012-checkout-last.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='checkout can switch to last branch and merge base'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t2015-checkout-unborn.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='checkout from unborn branch'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'setup' '
t/t2017-checkout-orphan.sh
+3
@@ -7,6 +7,9 @@ test_description='git checkout --orphan
7
8 Main Tests for --orphan functionality.'
9
10 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
11 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
12 +
13 . ./test-lib.sh
14
15 TEST_FILE=foo
t/t2020-checkout-detach.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='checkout into detached HEAD state'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 check_detached () {
t/t2022-checkout-paths.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='checkout $tree -- $paths'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success setup '
t/t2023-checkout-m.sh
+3
@@ -4,6 +4,9 @@ test_description='checkout -m -- <conflicted path>
4
5 Ensures that checkout -m on a resolved file restores the conflicted file'
6
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 test_expect_success setup '
t/t2027-checkout-track.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='tests for git branch --track'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t2030-unresolve-info.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='undoing resolution'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 check_resolve_undo () {
t/t2060-switch.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='switch basic functionality'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t2070-restore.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='restore basic functionality'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t2400-worktree-add.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test git worktree add'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 . "$TEST_DIRECTORY"/lib-rebase.sh
t/t2401-worktree-prune.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='prune $GIT_DIR/worktrees'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success initialize '
t/t2402-worktree-list.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test git worktree list'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t2405-worktree-submodule.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='Combination of submodules and multiple worktrees'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 base_path=$(pwd -P)
t/t3200-branch.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='git branch assorted tests'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12 . "$TEST_DIRECTORY"/lib-rebase.sh
13
t/t3201-branch-contains.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='branch --contains <commit>, --no-contains <commit> --merged, and --no-merged'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t3202-show-branch-octopus.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test show-branch with more than 8 heads'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 numbers="1 2 3 4 5 6 7 8 9 10"
t/t3203-branch-output.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='git branch display tests'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8 . "$TEST_DIRECTORY"/lib-terminal.sh
9
t/t3204-branch-name-interpretation.sh
+3
@@ -6,6 +6,9 @@ Branch name arguments are usually names which are taken to be inside of
6 refs/heads/, but we interpret some magic syntax like @{-1}, @{upstream}, etc.
7 This script aims to check the behavior of those corner cases.
8 '
9 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
10 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
11 +
12 . ./test-lib.sh
13
14 expect_branch() {
t/t3205-branch-color.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='basic branch output coloring'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'set up some sample branches' '
t/t3206-range-diff.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='range-diff tests'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 # Note that because of the range-diff's heuristics, test_commit does more
t/t3210-pack-refs.sh
+3
@@ -9,6 +9,9 @@ test_description='git pack-refs should not change the branch semantic
9 This test runs git pack-refs and git show-ref and checks that the branch
10 semantic is still the same.
11 '
12 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
13 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
14 +
15 . ./test-lib.sh
16
17 test_expect_success 'enable reflogs' '
t/t3211-peel-ref.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='tests for the peel_ref optimization of packed-refs'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'create annotated tag in refs/tags' '
t/t3302-notes-index-expensive.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='Test commit notes index (expensive!)'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 create_repo () {
t/t3303-notes-subtrees.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='Test commit notes organized in subtrees'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 number_of_commits=100
t/t3304-notes-mixed.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='Test notes trees that also contain non-notes'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 number_of_commits=100
t/t3320-notes-merge-worktrees.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='Test merging of notes trees in multiple worktrees'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 test_expect_success 'setup commit' '
t/t3400-rebase.sh
+3
@@ -8,6 +8,9 @@ test_description='git rebase assorted tests
8 This test runs git rebase and checks that the author information is not lost
9 among other things.
10 '
11 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
12 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
13 +
14 . ./test-lib.sh
15
16 GIT_AUTHOR_NAME=author@name
t/t3402-rebase-merge.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='git rebase --merge test'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 T="A quick brown fox
t/t3403-rebase-skip.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='git rebase --merge --skip tests'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 . "$TEST_DIRECTORY"/lib-rebase.sh
t/t3404-rebase-interactive.sh
+3
@@ -25,6 +25,9 @@ Initial setup:
25 where A, B, D and G all touch file1, and one, two, three, four all
26 touch file "conflict".
27 '
28 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
29 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
30 +
31 . ./test-lib.sh
32
33 . "$TEST_DIRECTORY"/lib-rebase.sh
t/t3405-rebase-malformed.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='rebase should handle arbitrary git message'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9 . "$TEST_DIRECTORY"/lib-rebase.sh
10
t/t3406-rebase-message.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='messages from rebase operation'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t3407-rebase-abort.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git rebase --abort tests'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 ### Test that we handle space characters properly
t/t3408-rebase-multi-line.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='rebasing a commit with multi-line first paragraph.'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t3409-rebase-preserve-merges.sh
+3
@@ -6,6 +6,9 @@ test_description='git rebase -p should preserve merges
6
7 Run "git rebase -p" and check that merges are properly carried along
8 '
9 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
10 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
11 +
12 . ./test-lib.sh
13
14 if ! test_have_prereq REBASE_P; then
t/t3412-rebase-root.sh
+3
@@ -4,6 +4,9 @@ test_description='git rebase --root
4
5 Tests if git rebase --root --onto <newparent> can rebase the root commit.
6 '
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 log_with_names () {
t/t3413-rebase-hook.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git rebase with its hook(s)'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t3415-rebase-autosquash.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='auto squash'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 . "$TEST_DIRECTORY"/lib-rebase.sh
t/t3416-rebase-onto-threedots.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git rebase --onto A...B'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9 . "$TEST_DIRECTORY/lib-rebase.sh"
10
t/t3418-rebase-continue.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git rebase --continue tests'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 . "$TEST_DIRECTORY"/lib-rebase.sh
t/t3419-rebase-patch-id.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git rebase - test patch id computation'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 scramble () {
t/t3420-rebase-autostash.sh
+3
@@ -4,6 +4,9 @@
4 #
5
6 test_description='git rebase --autostash tests'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 test_expect_success setup '
t/t3427-rebase-subtree.sh
+3
@@ -4,6 +4,9 @@ test_description='git rebase tests for -Xsubtree
4
5 This test runs git rebase and tests the subtree strategy.
6 '
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11 . "$TEST_DIRECTORY"/lib-rebase.sh
12
t/t3430-rebase-merges.sh
+3
@@ -18,6 +18,9 @@ Initial setup:
18 \
19 Conflicting-G
20 '
21 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
22 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
23 +
24 . ./test-lib.sh
25 . "$TEST_DIRECTORY"/lib-rebase.sh
26 . "$TEST_DIRECTORY"/lib-log-graph.sh
t/t3431-rebase-fork-point.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='git rebase --fork-point test'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 # A---B---D---E (master)
t/t3432-rebase-fast-forward.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='ensure rebase fast-forwards commits when possible'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 test_expect_success setup '
t/t3434-rebase-i18n.sh
+3
@@ -14,6 +14,9 @@ Initial setup:
14 5 - 6 second
15 '
16
17 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
18 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
19 +
20 . ./test-lib.sh
21
22 compare_msg () {
t/t3435-rebase-gpg-sign.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='test rebase --[no-]gpg-sign'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12 . "$TEST_DIRECTORY/lib-rebase.sh"
13 . "$TEST_DIRECTORY/lib-gpg.sh"
t/t3500-cherry.sh
+3
@@ -8,6 +8,9 @@ test_description='git cherry should detect patches integrated upstream
8 This test cherry-picks one local change of two into master branch, and
9 checks that git cherry only returns the second patch in the local branch
10 '
11 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
12 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
13 +
14 . ./test-lib.sh
15
16 GIT_AUTHOR_EMAIL=bogus_email_address
t/t3501-revert-cherry-pick.sh
+3
@@ -10,6 +10,9 @@ test_description='test cherry-pick and revert with renames
10
11 '
12
13 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
14 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
15 +
16 . ./test-lib.sh
17
18 test_expect_success setup '
t/t3502-cherry-pick-merge.sh
+3
@@ -8,6 +8,9 @@ test_description='cherry picking and reverting a merge
8
9 '
10
11 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
12 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
13 +
14 . ./test-lib.sh
15
16 test_expect_success setup '
t/t3503-cherry-pick-root.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test cherry-picking (and reverting) a root commit'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t3504-cherry-pick-rerere.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='cherry-pick should rerere for conflicts'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t3505-cherry-pick-empty.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test cherry-picking an empty commit'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t3506-cherry-pick-ff.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test cherry-picking with --ff option'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t3507-cherry-pick-conflict.sh
+3
@@ -9,6 +9,9 @@ test_description='test cherry-pick and revert with conflicts
9
10 '
11
12 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
13 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
14 +
15 . ./test-lib.sh
16
17 pristine_detach () {
t/t3508-cherry-pick-many-commits.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test cherry-picking many commits'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 check_head_differs_from() {
t/t3509-cherry-pick-merge-df.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='Test cherry-pick with directory/file conflicts'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'Initialize repository' '
t/t3512-cherry-pick-submodule.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='cherry-pick can handle submodules'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9 . "$TEST_DIRECTORY"/lib-submodule-update.sh
10
t/t3600-rm.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='Test of the various options to git rm.'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 # Setup some files to be removed, some with funny characters
t/t3701-add-interactive.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='add -i basic tests'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8 . "$TEST_DIRECTORY"/lib-terminal.sh
9
t/t3901-i18n-patch.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='i18n settings and format-patch | am pipe'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 check_encoding () {
t/t3903-stash.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='Test git stash'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 diff_cmp () {
t/t3910-mac-os-precompose.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='utf-8 decomposed (nfd) converted to precomposed (nfc)'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 if ! test_have_prereq UTF8_NFD_TO_NFC
t/t4013-diff-various.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='Various diff formatting options'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12 . "$TEST_DIRECTORY"/diff-lib.sh
13
t/t4014-format-patch.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='various format-patch tests'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12 . "$TEST_DIRECTORY"/lib-terminal.sh
13
t/t4017-diff-retval.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='Return value of diffs'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t4038-diff-combined.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='combined diff'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9 . "$TEST_DIRECTORY"/diff-lib.sh
10
t/t4041-diff-submodule-option.sh
+3
@@ -9,6 +9,9 @@ test_description='Support for verbose submodule differences in git diff
9 This test tries to verify the sanity of the --submodule option of git diff.
10 '
11
12 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
13 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
14 +
15 . ./test-lib.sh
16
17 # Tested non-UTF-8 encoding
t/t4048-diff-combined-binary.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='combined and merge diff handle binary files and textconv'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'setup binary merge conflict' '
t/t4052-stat-output.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='test --stat output of various commands'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12 . "$TEST_DIRECTORY"/lib-terminal.sh
13
t/t4056-diff-order.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='diff order'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 create_files () {
t/t4057-diff-combined-paths.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='combined diff show only paths that are different to all parents'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 # verify that diffc.expect matches output of
t/t4061-diff-indent.sh
+3
@@ -3,6 +3,9 @@
3 test_description='Test diff indent heuristic.
4
5 '
6 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
7 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
8 +
9 . ./test-lib.sh
10 . "$TEST_DIRECTORY"/diff-lib.sh
11
t/t4066-diff-emit-delay.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test combined/stat/moved interaction'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 # This test covers a weird 3-way interaction between "--cc -p", which will run
t/t4068-diff-symmetric-merge-base.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='behavior of diff with symmetric-diff setups and --merge-base'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 # build these situations:
t/t4103-apply-binary.sh
+3
@@ -6,6 +6,9 @@
6 test_description='git apply handling binary patches
7
8 '
9 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
10 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
11 +
12 . ./test-lib.sh
13
14 test_expect_success 'setup' '
t/t4108-apply-threeway.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git apply --3way'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 print_sanitized_conflicted_diff () {
t/t4121-apply-diffs.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='git apply for contextually independent diffs'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 echo '1
t/t4122-apply-symlink-inside.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='apply to deeper directory without getting fooled with symlink'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success setup '
t/t4150-am.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git am running'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup: messages' '
t/t4200-rerere.sh
+3
@@ -22,6 +22,9 @@ test_description='git rerere
22 ++++++ [master] initial
23 '
24
25 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
26 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
27 +
28 . ./test-lib.sh
29
30 test_expect_success 'setup' '
t/t4201-shortlog.sh
+3
@@ -6,6 +6,9 @@
6 test_description='git shortlog
7 '
8
9 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
10 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
11 +
12 . ./test-lib.sh
13
14 test_expect_success 'setup' '
t/t4202-log.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git log'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9 . "$TEST_DIRECTORY/lib-gpg.sh"
10 . "$TEST_DIRECTORY/lib-terminal.sh"
t/t4203-mailmap.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='.mailmap configurations'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 fuzz_blame () {
t/t4204-patch-id.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git patch-id'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t4207-log-decoration-colors.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='Test for "git log --decorate" colors'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 test_expect_success setup '
t/t4208-log-magic-pathspec.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='magic pathspec tests using git-log'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t4211-line-log.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test log -L'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'setup (import history)' '
t/t4214-log-graph-octopus.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git log --graph of skewed left octopus merge.'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9 . "$TEST_DIRECTORY"/lib-log-graph.sh
10
t/t4216-log-bloom.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='git log for a path with Bloom filters'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 GIT_TEST_COMMIT_GRAPH=0
t/t4253-am-keep-cr-dos.sh
+3
@@ -6,6 +6,9 @@
6 test_description='git-am mbox with dos line ending.
7
8 '
9 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
10 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
11 +
12 . ./test-lib.sh
13
14 # Three patches which will be added as files with dos line ending.
t/t5150-request-pull.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='Test workflows involving pull request.'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 if ! test_have_prereq PERL
t/t5304-prune.sh
+3
@@ -4,6 +4,9 @@
4 #
5
6 test_description='prune'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 day=$((60*60*24))
t/t5305-include-tag.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='git pack-object --include-tag'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 TRASH=$(pwd)
t/t5310-pack-bitmaps.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='exercise basic bitmap functionality'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 objpath () {
t/t5312-prune-corruption.sh
+3
@@ -8,6 +8,9 @@ bail out or to proceed using it as a reachable tip, but it is _not_
8 OK to proceed as if it did not exist. Otherwise we might silently
9 delete objects that cannot be recovered.
10 '
11 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
12 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
13 +
14 . ./test-lib.sh
15
16 test_expect_success 'disable reflogs' '
t/t5317-pack-objects-filter-objects.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git pack-objects using object filtering'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 # Test blob:none filter.
t/t5322-pack-objects-sparse.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='pack-objects object selection using sparse algorithm'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'setup repo' '
t/t5400-send-pack.sh
+3
@@ -6,6 +6,9 @@
6 test_description='See why rewinding head breaks send-pack
7
8 '
9 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
10 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
11 +
12 . ./test-lib.sh
13
14 cnt=64
t/t5402-post-merge-hook.sh
+3
@@ -4,6 +4,9 @@
4 #
5
6 test_description='Test the post-merge hook.'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 test_expect_success setup '
t/t5403-post-checkout-hook.sh
+3
@@ -4,6 +4,9 @@
4 #
5
6 test_description='Test the post-checkout hook.'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 test_expect_success setup '
t/t5404-tracking-branches.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='tracking branch update checks for git push'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t5405-send-pack-rewind.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='forced push to replace commit we do not have'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t5407-post-rewrite-hook.sh
+3
@@ -4,6 +4,9 @@
4 #
5
6 test_description='Test the post-rewrite hook.'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 test_expect_success 'setup' '
t/t5410-receive-pack-alternates.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git receive-pack with alternate ref filtering'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t5500-fetch-pack.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='Testing multi_ack pack fetching'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 # Test fetch-pack/upload-pack pair.
t/t5501-fetch-push-alternates.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='fetch/push involving alternates'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 count_objects () {
t/t5502-quickfetch.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test quickfetch from local'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t5503-tagfollow.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test automatic tag following'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 # End state of the repository:
t/t5504-fetch-receive-strict.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='fetch/receive strict mode'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'setup and inject "corrupt or missing" object' '
t/t5505-remote.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git remote porcelain-ish'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 setup_repository () {
t/t5506-remote-groups.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='git remote group handling'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 mark() {
t/t5509-fetch-push-namespaces.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='fetch/push involving ref namespaces'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success setup '
t/t5510-fetch.sh
+3
@@ -5,6 +5,9 @@ test_description='Per branch config variables affects "git fetch".
5
6 '
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 D=$(pwd)
t/t5512-ls-remote.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git ls-remote'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 generate_references () {
t/t5514-fetch-multiple.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='fetch --all works correctly'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 setup_repository () {
t/t5516-fetch-push.sh
+3
@@ -14,6 +14,9 @@ This test checks the following functionality:
14 * reflogs
15 '
16
17 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
18 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
19 +
20 . ./test-lib.sh
21
22 D=$(pwd)
t/t5517-push-mirror.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='pushing to a mirror repository'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 D=$(pwd)
t/t5518-fetch-exit-status.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='fetch exit status test'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 test_expect_success setup '
t/t5519-push-alternates.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='push to a repository that borrows from elsewhere'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t5520-pull.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='pulling into void'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 modify () {
t/t5521-pull-options.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='pull options'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t5523-push-upstream.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='push with --set-upstream'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8 . "$TEST_DIRECTORY"/lib-terminal.sh
9
t/t5526-fetch-submodules.sh
+3
@@ -3,6 +3,9 @@
3
4 test_description='Recursive "git fetch" for submodules'
5
6 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
7 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
8 +
9 . ./test-lib.sh
10
11 pwd=$(pwd)
t/t5527-fetch-odd-refs.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test fetching of oddly-named refs'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 # afterwards we will have:
t/t5528-push-default.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='check various push.default settings'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'setup bare remotes' '
t/t5531-deep-submodule-push.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test push with submodules'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t5533-push-cas.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='compare & swap push force/delete safety'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 setup_srcdst_basic () {
t/t5534-push-signed.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='signed push'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9 . "$TEST_DIRECTORY"/lib-gpg.sh
10
t/t5537-fetch-shallow.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='fetch/clone from a shallow clone'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 commit() {
t/t5538-push-shallow.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='push from/to a shallow clone'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 commit() {
t/t5539-fetch-http-shallow.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='fetch/clone from a shallow clone over http'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9 . "$TEST_DIRECTORY"/lib-httpd.sh
10 start_httpd
t/t5540-http-push-webdav.sh
+3
@@ -7,6 +7,9 @@ test_description='test WebDAV http-push
7
8 This test runs various sanity checks on http-push.'
9
10 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
11 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
12 +
13 . ./test-lib.sh
14
15 if git http-push > /dev/null 2>&1 || [ $? -eq 128 ]
t/t5541-http-push-smart.sh
+3
@@ -4,6 +4,9 @@
4 #
5
6 test_description='test smart pushing over http via http-backend'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 ROOT_PATH="$PWD"
t/t5542-push-http-shallow.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='push from/to a shallow clone over http'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9 . "$TEST_DIRECTORY"/lib-httpd.sh
10 start_httpd
t/t5543-atomic-push.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='pushing to a repository using the atomic push option'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 mk_repo_pair () {
t/t5545-push-options.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='pushing to a repository using push options'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 mk_repo_pair () {
t/t5550-http-fetch-dumb.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test dumb fetching over http via static file'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8 . "$TEST_DIRECTORY"/lib-httpd.sh
9 start_httpd
t/t5551-http-fetch-smart.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test smart fetching over http via http-backend'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8 . "$TEST_DIRECTORY"/lib-httpd.sh
9 start_httpd
t/t5553-set-upstream.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='"git fetch/pull --set-upstream" basic tests.'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 check_config () {
t/t5560-http-backend-noserver.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test git-http-backend-noserver'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 HTTPD_DOCUMENT_ROOT_PATH="$TRASH_DIRECTORY"
t/t5561-http-backend.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test git-http-backend'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8 . "$TEST_DIRECTORY"/lib-httpd.sh
9
t/t5570-git-daemon.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test fetching over git protocol'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 . "$TEST_DIRECTORY"/lib-git-daemon.sh
t/t5571-pre-push-hook.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='check pre-push hooks'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 # Setup hook that always succeeds
t/t5580-unc-paths.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='various Windows-only path tests'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 if test_have_prereq CYGWIN
t/t5581-http-curl-verbose.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test GIT_CURL_VERBOSE'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8 . "$TEST_DIRECTORY"/lib-httpd.sh
9 start_httpd
t/t5582-fetch-negative-refspec.sh
+3
@@ -5,6 +5,9 @@ test_description='"git fetch" with negative refspecs.
5
6 '
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 test_expect_success setup '
t/t5601-clone.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description=clone
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 X=
t/t5604-clone-reference.sh
+3
@@ -4,6 +4,9 @@
4 #
5
6 test_description='test clone --reference'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 base_dir=$(pwd)
t/t5605-clone-local.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test local clone'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 repo_is_hardlinked() {
t/t5606-clone-options.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='basic clone options'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'setup' '
t/t5607-clone-bundle.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='some bundle related tests'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'setup' '
t/t5609-clone-branch.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='clone --branch option'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 check_HEAD() {
t/t5610-clone-detached.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test cloning a repository with detached HEAD'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 head_is_detached() {
t/t5611-clone-config.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='tests for git clone -c key=value'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'clone -c sets config in cloned repo' '
t/t5612-clone-refspec.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test refspec written by clone-command'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'setup' '
t/t5616-partial-clone.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git partial clone'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 # create a normal "src" repo where we can later create new commits.
t/t5617-clone-submodules-remote.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='Test cloning repos with submodules using remote-tracking branches'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 pwd=$(pwd)
t/t5700-protocol-v1.sh
+3
@@ -8,6 +8,9 @@ TEST_NO_CREATE_REPO=1
8 GIT_TEST_PROTOCOL_VERSION=0
9 export GIT_TEST_PROTOCOL_VERSION
10
11 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
12 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
13 +
14 . ./test-lib.sh
15
16 # Test protocol v1 with 'git://' transport
t/t5701-git-serve.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test protocol v2 server commands'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'test capability advertisement' '
t/t5702-protocol-v2.sh
+3
@@ -4,6 +4,9 @@ test_description='test git wire-protocol version 2'
4
5 TEST_NO_CREATE_REPO=1
6
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 # Test protocol v2 with 'git://' transport
t/t5703-upload-pack-ref-in-want.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='upload-pack ref-in-want'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 get_actual_refs () {
t/t5801-remote-helpers.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='Test remote-helper import and export commands'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12 . "$TEST_DIRECTORY"/lib-gpg.sh
13
t/t6000-rev-list-misc.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='miscellaneous rev-list tests'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t6001-rev-list-graft.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='Revision traversal vs grafts and path limiter'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t6004-rev-list-path-optim.sh
+3
@@ -13,6 +13,9 @@ test_description='git rev-list trivial path optimization test
13
14 '
15
16 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
17 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
18 +
19 . ./test-lib.sh
20
21 test_expect_success setup '
t/t6006-rev-list-format.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='git rev-list --pretty=format test'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12 . "$TEST_DIRECTORY"/lib-terminal.sh
13
t/t6007-rev-list-cherry-pick-file.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test git rev-list --cherry-pick -- file'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 # A---B---D---F
t/t6008-rev-list-submodule.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='git rev-list involving submodules that this repo has'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 test_expect_success 'setup' '
t/t6009-rev-list-parent.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='ancestor culling and limiting by parent number'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 check_revlist () {
t/t6012-rev-list-simplify.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='merge simplification'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 note () {
t/t6013-rev-list-reverse-parents.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='--reverse combines with --parents'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10
t/t6016-rev-list-graph-simplify-history.sh
+3
@@ -7,6 +7,9 @@
7
8 test_description='--graph and simplified history'
9
10 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
11 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
12 +
13 . ./test-lib.sh
14
15 test_expect_success 'set up rev-list --graph test' '
t/t6017-rev-list-stdin.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='log family learns --stdin'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 check () {
t/t6018-rev-list-glob.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='rev-list/rev-parse --glob'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 commit () {
t/t6019-rev-list-ancestry-path.sh
+3
@@ -21,6 +21,9 @@ test_description='--ancestry-path'
21 # --ancestry-path G..M -- G.t == L
22 # --ancestry-path --simplify-merges G^..M -- G.t == G L
23
24 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
25 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
26 +
27 . ./test-lib.sh
28
29 test_merge () {
t/t6030-bisect-porcelain.sh
+3
@@ -6,6 +6,9 @@ test_description='Tests git bisect functionality'
6
7 exec </dev/null
8
9 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
10 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
11 +
12 . ./test-lib.sh
13
14 add_line_into_file()
t/t6040-tracking-info.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='remote tracking stats'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 advance () {
t/t6050-replace.sh
+3
@@ -4,6 +4,9 @@
4 #
5 test_description='Tests replace refs functionality'
6
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11 . "$TEST_DIRECTORY/lib-gpg.sh"
12
t/t6101-rev-parse-parents.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='Test git rev-parse with different parent options'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 test_cmp_rev_output () {
t/t6110-rev-list-sparse.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='operations that cull histories in unusual ways'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success setup '
t/t6111-rev-list-treesame.sh
+3
@@ -13,6 +13,9 @@
13
14 test_description='TREESAME and limiting'
15
16 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
17 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
18 +
19 . ./test-lib.sh
20
21 note () {
t/t6112-rev-list-filters-objects.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git rev-list using object filtering'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 # Test the blob:none filter.
t/t6120-describe.sh
+3
@@ -11,6 +11,9 @@ test_description='test describe'
11 #
12 # First parent of a merge commit is on the same line, second parent below.
13
14 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
15 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
16 +
17 . ./test-lib.sh
18
19 check_describe () {
t/t6200-fmt-merge-msg.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='fmt-merge-msg test'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12 . "$TEST_DIRECTORY/lib-gpg.sh"
13
t/t6300-for-each-ref.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='for-each-ref test'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12 . "$TEST_DIRECTORY"/lib-gpg.sh
13 . "$TEST_DIRECTORY"/lib-terminal.sh
t/t6302-for-each-ref-filter.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test for-each-refs usage of ref-filter APIs'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9 . "$TEST_DIRECTORY"/lib-gpg.sh
10
t/t6400-merge-df.sh
+3
@@ -4,6 +4,9 @@
4 #
5
6 test_description='Test merge with directory/file conflicts'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 test_expect_success 'prepare repository' '
t/t6402-merge-rename.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='Merge-recursive merging renames'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 modify () {
t/t6404-recursive-merge.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='Test merge without common ancestors'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 # This scenario is based on a real-world repository of Shawn Pearce.
t/t6405-merge-symlinks.sh
+3
@@ -8,6 +8,9 @@ test_description='merging symlinks on filesystem w/o symlink support.
8 This tests that git merge-recursive writes merge results as plain files
9 if core.symlinks is false.'
10
11 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
12 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
13 +
14 . ./test-lib.sh
15
16 test_expect_success 'setup' '
t/t6406-merge-attr.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='per path merge controlled by merge attribute'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 test_expect_success setup '
t/t6407-merge-binary.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='ask merge-recursive to merge binary files'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t6409-merge-subtree.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='subtree merge strategy'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t6411-merge-filemode.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='merge: handle file mode'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'set up mode change in one branch' '
t/t6412-merge-large-rename.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='merging with large rename matrix'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 count() {
t/t6413-merge-crlf.sh
+3
@@ -8,6 +8,9 @@ test_description='merge conflict in crlf repo
8
9 '
10
11 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
12 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
13 +
14 . ./test-lib.sh
15
16 test_expect_success setup '
t/t6414-merge-rename-nocruft.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='Merge-recursive merging renames'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'setup' '
t/t6415-merge-dir-to-symlink.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='merging when a directory was replaced with a symlink'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'create a commit where dir a/b changed to symlink' '
t/t6416-recursive-corner-cases.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='recursive merge corner cases involving criss-cross merges'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9 . "$TEST_DIRECTORY"/lib-merge.sh
10
t/t6417-merge-ours-theirs.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='Merge-recursive ours and theirs variants'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success setup '
t/t6418-merge-text-auto.sh
+3
@@ -12,6 +12,9 @@ test_description='CRLF merge conflict across text=auto change
12 *+ [side^] Initial
13 '
14
15 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
16 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
17 +
18 . ./test-lib.sh
19
20 test_have_prereq SED_STRIPS_CR && SED_OPTIONS=-b
t/t6419-merge-ignorecase.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git-merge with case-changing rename on case-insensitive file system'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 if ! test_have_prereq CASE_INSENSITIVE_FS
t/t6422-merge-rename-corner-cases.sh
+3
@@ -3,6 +3,9 @@
3 test_description="recursive merge corner cases w/ renames but not criss-crosses"
4 # t6036 has corner cases that involve both criss-cross merges and renames
5
6 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
7 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
8 +
9 . ./test-lib.sh
10 . "$TEST_DIRECTORY"/lib-merge.sh
11
t/t6425-merge-rename-delete.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='Merge-recursive rename/delete conflict message'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'rename/delete' '
t/t6427-diff3-conflict-markers.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='recursive merge diff3 style conflict markers'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 # Setup:
t/t6430-merge-recursive.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='merge-recursive backend test'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9 . "$TEST_DIRECTORY"/lib-merge.sh
10
t/t6432-merge-recursive-space-options.sh
+3
@@ -11,6 +11,9 @@ test_description='merge-recursive space options
11 * ok 1: setup
12 '
13
14 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
15 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
16 +
17 . ./test-lib.sh
18
19 test_have_prereq SED_STRIPS_CR && SED_OPTIONS=-b
t/t6433-merge-toplevel.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='"git merge" top-level frontend'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 t3033_reset () {
t/t6434-merge-recursive-rename-options.sh
+3
@@ -26,6 +26,9 @@ they are rounded down (see, e.g., Documentation/diff-generate-patch.txt, which
26 mentions this in a different context).
27 '
28
29 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
30 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
31 +
32 . ./test-lib.sh
33
34 get_expected_stages () {
t/t6436-merge-overwrite.sh
+3
@@ -4,6 +4,9 @@ test_description='git-merge
4
5 Do not overwrite changes.'
6
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 test_expect_success 'setup' '
t/t6437-submodule-merge.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='merging with submodules'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 #
t/t6439-merge-co-error-msgs.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='unpack-trees error messages'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10
t/t6501-freshen-objects.sh
+3
@@ -25,6 +25,9 @@
25 # to refer to an existing tree).
26
27 test_description='check pruning of dependent objects'
28 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
29 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
30 +
31 . ./test-lib.sh
32
33 # We care about reachability, so we do not want to use
t/t7003-filter-branch.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='git filter-branch'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8 . "$TEST_DIRECTORY/lib-gpg.sh"
9
t/t7004-tag.sh
+3
@@ -7,6 +7,9 @@ test_description='git tag
7
8 Tests for operations with tags.'
9
10 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
11 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
12 +
13 . ./test-lib.sh
14 . "$TEST_DIRECTORY"/lib-gpg.sh
15 . "$TEST_DIRECTORY"/lib-terminal.sh
t/t7030-verify-tag.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='signed tag tests'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8 . "$TEST_DIRECTORY/lib-gpg.sh"
9
t/t7060-wtstatus.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='basic work tree status reporting'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success setup '
t/t7063-status-untracked-cache.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='test untracked cache'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 # On some filesystems (e.g. FreeBSD's ext2 and ufs) directory mtime
t/t7064-wtstatus-pv2.sh
+3
@@ -5,6 +5,9 @@ test_description='git status --porcelain=v2
5 This test exercises porcelain V2 output for git status.'
6
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13
t/t7102-reset.sh
+3
@@ -7,6 +7,9 @@ test_description='git reset
7
8 Documented tests for git reset'
9
10 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
11 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
12 +
13 . ./test-lib.sh
14
15 commit_msg () {
t/t7113-post-index-change-hook.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='post index change hook'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'setup' '
t/t7201-co.sh
+3
@@ -20,6 +20,9 @@ Test switching across them.
20
21 '
22
23 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
24 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
25 +
26 . ./test-lib.sh
27
28 test_tick
t/t7400-submodule-basic.sh
+3
@@ -9,6 +9,9 @@ This test tries to verify basic sanity of the init, update and status
9 subcommands of git submodule.
10 '
11
12 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
13 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
14 +
15 . ./test-lib.sh
16
17 test_expect_success 'submodule deinit works on empty repository' '
t/t7403-submodule-sync.sh
+3
@@ -8,6 +8,9 @@ test_description='git submodule sync
8 These tests exercise the "git submodule sync" subcommand.
9 '
10
11 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
12 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
13 +
14 . ./test-lib.sh
15
16 test_expect_success setup '
t/t7406-submodule-update.sh
+3
@@ -9,6 +9,9 @@ This test verifies that "git submodule update" detaches the HEAD of the
9 submodule and "git submodule update --rebase/--merge" does not detach the HEAD.
10 '
11
12 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
13 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
14 +
15 . ./test-lib.sh
16
17
t/t7407-submodule-foreach.sh
+3
@@ -9,6 +9,9 @@ This test verifies that "git submodule foreach" correctly visits all submodules
9 that are currently checked out.
10 '
11
12 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
13 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
14 +
15 . ./test-lib.sh
16
17
t/t7409-submodule-detached-work-tree.sh
+3
@@ -10,6 +10,9 @@ on detached working trees
10 '
11
12 TEST_NO_CREATE_REPO=1
13 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
14 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
15 +
16 . ./test-lib.sh
17
18 test_expect_success 'submodule on detached working tree' '
t/t7417-submodule-path-url.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='check handling of .gitmodule path with dash'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'create submodule with dash in path' '
t/t7501-commit-basic-functionality.sh
+3
@@ -7,6 +7,9 @@
7 # signoff
8
9 test_description='git commit'
10 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
11 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
12 +
13 . ./test-lib.sh
14 . "$TEST_DIRECTORY/diff-lib.sh"
15
t/t7502-commit-porcelain.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git commit porcelain-ish'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 commit_msg_is () {
t/t7503-pre-commit-and-pre-merge-commit-hooks.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='pre-commit and pre-merge-commit hooks'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 HOOKDIR="$(git rev-parse --git-dir)/hooks"
t/t7504-commit-msg-hook.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='commit-msg hook'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'with no hook' '
t/t7505-prepare-commit-msg-hook.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='prepare-commit-msg hook'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 test_expect_success 'set up commits for rebasing' '
t/t7510-signed-commit.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='signed commit tests'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8 GNUPGHOME_NOT_USED=$GNUPGHOME
9 . "$TEST_DIRECTORY/lib-gpg.sh"
t/t7512-status-help.sh
+3
@@ -7,6 +7,9 @@
7
8 test_description='git status advice'
9
10 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
11 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
12 +
13 . ./test-lib.sh
14
15 . "$TEST_DIRECTORY"/lib-rebase.sh
t/t7517-per-repo-email.sh
+3
@@ -6,6 +6,9 @@
6
7 test_description='per-repo forced setting of email address'
8
9 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
10 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
11 +
12 . ./test-lib.sh
13
14 test_expect_success 'setup a likely user.useConfigOnly use case' '
t/t7600-merge.sh
+3
@@ -26,6 +26,9 @@ Testing basic merge operations/option parsing.
26 +++++++* [c0] commit 0
27 '
28
29 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
30 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
31 +
32 . ./test-lib.sh
33 . "$TEST_DIRECTORY"/lib-gpg.sh
34
t/t7608-merge-messages.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='test auto-generated merge messages'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 check_oneline() {
t/t7610-mergetool.sh
+3
@@ -7,6 +7,9 @@ test_description='git mergetool
7
8 Testing basic merge tool invocation'
9
10 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
11 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
12 +
13 . ./test-lib.sh
14
15 # All the mergetool test work by checking out a temporary branch based
t/t7611-merge-abort.sh
+3
@@ -22,6 +22,9 @@ Next, test git merge --abort with the following variables:
22 - changed/unchanged worktree after merge
23 - changed/unchanged index after merge
24 '
25 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
26 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
27 +
28 . ./test-lib.sh
29
30 test_expect_success 'setup' '
t/t7612-merge-verify-signatures.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='merge signature verification tests'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8 . "$TEST_DIRECTORY/lib-gpg.sh"
9
t/t7614-merge-signoff.sh
+3
@@ -5,6 +5,9 @@ test_description='git merge --signoff
5 This test runs git merge --signoff and makes sure that it works.
6 '
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 # Setup test files
t/t7701-repack-unpack-unreachable.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git repack works correctly'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./test-lib.sh
9
10 fsha1=
t/t7800-difftool.sh
+3
@@ -8,6 +8,9 @@ test_description='git-difftool
8 Testing basic diff tool invocation
9 '
10
11 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
12 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
13 +
14 . ./test-lib.sh
15
16 difftool_test_setup ()
t/t7810-grep.sh
+3
@@ -6,6 +6,9 @@
6 test_description='git grep various.
7 '
8
9 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
10 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
11 +
12 . ./test-lib.sh
13
14 cat >hello.c <<EOF
t/t8001-annotate.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='git annotate'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 PROG='git annotate'
t/t8002-blame.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='git blame'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 PROG='git blame -c'
t/t8003-blame-corner-cases.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='git blame corner cases'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 pick_fc='s/^[0-9a-f^]* *\([^ ]*\) *(\([^ ]*\) .*/\1-\2/'
t/t8004-blame-with-conflicts.sh
+3
@@ -3,6 +3,9 @@
3 # Based on a test case submitted by Björn Steinbrink.
4
5 test_description='git blame on conflicted files'
6 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
7 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
8 +
9 . ./test-lib.sh
10
11 test_expect_success 'setup first case' '
t/t8012-blame-colors.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='colored git blame'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 PROG='git blame -c'
t/t9001-send-email.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='git send-email'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 # May be altered later in the test
t/t9100-git-svn-basic.sh
+3
@@ -6,6 +6,9 @@
6 test_description='git svn basic tests'
7 GIT_SVN_LC_ALL=${LC_ALL:-$LANG}
8
9 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
10 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
11 +
12 . ./lib-git-svn.sh
13
14 case "$GIT_SVN_LC_ALL" in
t/t9145-git-svn-master-branch.sh
+3
@@ -3,6 +3,9 @@
3 # Copyright (c) 2009 Eric Wong
4 #
5 test_description='git svn initial master branch is "trunk" if possible'
6 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
7 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
8 +
9 . ./lib-git-svn.sh
10
11 test_expect_success 'setup test repository' '
t/t9151-svn-mergeinfo.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='git-svn svn mergeinfo properties'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./lib-git-svn.sh
12
13 test_expect_success 'load svn dump' "
t/t9155-git-svn-fetch-deleted-tag.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git svn fetch deleted tag'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./lib-git-svn.sh
9
10 test_expect_success 'setup svn repo' '
t/t9156-git-svn-fetch-deleted-tag-2.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git svn fetch deleted tag 2'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./lib-git-svn.sh
9
10 test_expect_success 'setup svn repo' '
t/t9163-git-svn-reset-clears-caches.sh
+3
@@ -4,6 +4,9 @@
4 #
5
6 test_description='git svn reset clears memoized caches'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./lib-git-svn.sh
11
12 svn_ver="$(svn --version --quiet)"
t/t9169-git-svn-dcommit-crlf.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='git svn dcommit CRLF'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./lib-git-svn.sh
8
9 test_expect_success 'setup commit repository' '
t/t9300-fast-import.sh
+3
@@ -4,6 +4,9 @@
4 #
5
6 test_description='test git fast-import utility'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11 . "$TEST_DIRECTORY"/diff-lib.sh ;# test-lib chdir's into trash
12
t/t9301-fast-import-notes.sh
+3
@@ -4,6 +4,9 @@
4 #
5
6 test_description='test git fast-import of notes objects'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12
t/t9350-fast-export.sh
+3
@@ -4,6 +4,9 @@
4 #
5
6 test_description='git fast-export'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./test-lib.sh
11
12 test_expect_success 'setup' '
t/t9351-fast-export-anonymize.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='basic tests for fast-export --anonymize'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./test-lib.sh
8
9 test_expect_success 'setup simple repo' '
t/t9400-git-cvsserver-server.sh
+3
@@ -8,6 +8,9 @@ test_description='git-cvsserver access
8 tests read access to a git repository with the
9 cvs CLI client via git-cvsserver server'
10
11 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
12 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
13 +
14 . ./test-lib.sh
15
16 if ! test_have_prereq PERL; then
t/t9401-git-cvsserver-crlf.sh
+3
@@ -9,6 +9,9 @@ test_description='git-cvsserver -kb modes
9 tests -kb mode for binary files when accessing a git
10 repository using cvs CLI client via git-cvsserver server'
11
12 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
13 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
14 +
15 . ./test-lib.sh
16
17 marked_as () {
t/t9402-git-cvsserver-refs.sh
+3
@@ -5,6 +5,9 @@ test_description='git-cvsserver and git refspecs
5 tests ability for git-cvsserver to switch between and compare
6 tags, branches and other git refspecs'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./test-lib.sh
12
13 #########
t/t9500-gitweb-standalone-no-errors.sh
+3
@@ -10,6 +10,9 @@ commandline, and checks that it would not write any errors
10 or warnings to log.'
11
12
13 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
14 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
15 +
16 . ./gitweb-lib.sh
17
18 # ----------------------------------------------------------------------
t/t9501-gitweb-standalone-http-status.sh
+3
@@ -10,6 +10,9 @@ commandline, and checks that it returns the expected HTTP status
10 code and message.'
11
12
13 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
14 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
15 +
16 . ./gitweb-lib.sh
17
18 #
t/t9502-gitweb-standalone-parse-output.sh
+3
@@ -10,6 +10,9 @@ commandline, and checks that it produces the correct output, either
10 in the HTTP header or the actual script output.'
11
12
13 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
14 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
15 +
16 . ./gitweb-lib.sh
17
18 # ----------------------------------------------------------------------
t/t9600-cvsimport.sh
+3
@@ -1,6 +1,9 @@
1 #!/bin/sh
2
3 test_description='git cvsimport basic tests'
4 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6 +
7 . ./lib-cvs.sh
8
9 if ! test_have_prereq NOT_ROOT; then
t/t9601-cvsimport-vendor-branch.sh
+3
@@ -32,6 +32,9 @@
32 # tag has been removed.
33
34 test_description='git cvsimport handling of vendor branches'
35 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
36 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
37 +
38 . ./lib-cvs.sh
39
40 setup_cvs_test_repository t9601
t/t9602-cvsimport-branches-tags.sh
+3
@@ -4,6 +4,9 @@
4 # t9602/README.
5
6 test_description='git cvsimport handling of branches and tags'
7 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
8 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
9 +
10 . ./lib-cvs.sh
11
12 setup_cvs_test_repository t9602
t/t9603-cvsimport-patchsets.sh
+3
@@ -12,6 +12,9 @@
12 # bug.
13
14 test_description='git cvsimport testing for correct patchset estimation'
15 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
16 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
17 +
18 . ./lib-cvs.sh
19
20 setup_cvs_test_repository t9603
t/t9800-git-p4-basic.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git p4 tests'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./lib-git-p4.sh
9
10 test_expect_success 'start p4d' '
t/t9801-git-p4-branch.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git p4 tests for p4 branches'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./lib-git-p4.sh
9
10 test_expect_success 'start p4d' '
t/t9806-git-p4-options.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git p4 options'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./lib-git-p4.sh
9
10 test_expect_success 'start p4d' '
t/t9807-git-p4-submit.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git p4 submit'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./lib-git-p4.sh
9
10 test_expect_success 'start p4d' '
t/t9811-git-p4-label-import.sh
+3
@@ -2,6 +2,9 @@
2
3 test_description='git p4 label tests'
4
5 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
6 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 +
8 . ./lib-git-p4.sh
9
10 test_expect_success 'start p4d' '
t/t9902-completion.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='test bash completion'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./lib-bash.sh
12
13 complete ()
t/t9903-bash-prompt.sh
+3
@@ -5,6 +5,9 @@
5
6 test_description='test git-specific bash prompt functions'
7
8 +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9 +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 +
11 . ./lib-bash.sh
12
13 . "$GIT_BUILD_DIR/contrib/completion/git-prompt.sh"