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 committedNov 18, 2020 at 23:44 UTC334afbc76fbd4a8d850946a2b450ba036365b554
325 files changed+974
ci/run-build-and-tests.sh
+2
index 6c27b886b8..50e0b90073 100755--- a/ci/run-build-and-tests.sh+++ b/ci/run-build-and-tests.sh@@ -13,6 +13,7 @@ esac make case "$jobname" in linux-gcc)+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main make test export GIT_TEST_SPLIT_INDEX=yes export GIT_TEST_FULL_IN_PACK_ARRAY=true@@ -22,6 +23,7 @@ linux-gcc) export GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=1 export GIT_TEST_MULTI_PACK_INDEX=1 export GIT_TEST_ADD_I_USE_BUILTIN=1+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master make test ;; linux-clang)
t/t0002-gitfile.sh
+3
index 960ed150cb..0a396c95e5 100755--- a/t/t0002-gitfile.sh+++ b/t/t0002-gitfile.sh@@ -4,6 +4,9 @@ test_description='.git file Verify that plumbing commands work when .git is a file '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh objpath() {
index 825d9a184f..67e201b5c1 100755--- a/t/t1300-config.sh+++ b/t/t1300-config.sh@@ -5,6 +5,9 @@ test_description='Test git config in different settings'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'clear default config' '
t/t1301-shared-repo.sh
+3
index 2dc853d1be..c573438f98 100755--- a/t/t1301-shared-repo.sh+++ b/t/t1301-shared-repo.sh@@ -5,6 +5,9 @@ test_description='Test shared repository initialization'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # Remove a default ACL from the test dir if possible.
t/t1400-update-ref.sh
+3
index 4c01e08551..4ae6f50c02 100755--- a/t/t1400-update-ref.sh+++ b/t/t1400-update-ref.sh@@ -4,6 +4,9 @@ # test_description='Test git update-ref and basic ref logging'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh Z=$ZERO_OID
index 4a9964e9dc..8e73633761 100755--- a/t/t1508-at-combinations.sh+++ b/t/t1508-at-combinations.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='test various @{X} syntax combinations together'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh check() {
t/t1511-rev-parse-caret.sh
+3
index e0a49a651f..cfb2ea5e04 100755--- a/t/t1511-rev-parse-caret.sh+++ b/t/t1511-rev-parse-caret.sh@@ -2,6 +2,9 @@ test_description='tests for ref^{stuff}'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
t/t1512-rev-parse-disambiguation.sh
+3
index 18fa6cf40d..2ef1f2b7e8 100755--- a/t/t1512-rev-parse-disambiguation.sh+++ b/t/t1512-rev-parse-disambiguation.sh@@ -20,6 +20,9 @@ one tagged as v1.0.0. They all have one regular file each. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh if ! test_have_prereq SHA1
t/t1513-rev-parse-prefix.sh
+3
index 87ec3ae714..d151ef9218 100755--- a/t/t1513-rev-parse-prefix.sh+++ b/t/t1513-rev-parse-prefix.sh@@ -2,6 +2,9 @@ test_description='Tests for rev-parse --prefix'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
index 12a5568844..7d4a6f1e93 100755--- a/t/t1700-split-index.sh+++ b/t/t1700-split-index.sh@@ -2,6 +2,9 @@ test_description='split index mode tests'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # We need total control of index splitting here
t/t2007-checkout-symlink.sh
+3
index fc9aad530e..8879a78b85 100755--- a/t/t2007-checkout-symlink.sh+++ b/t/t2007-checkout-symlink.sh@@ -4,6 +4,9 @@ test_description='git checkout to switch between branches with symlink<->dir'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success setup '
t/t2009-checkout-statinfo.sh
+3
index f3c2152087..9af4d6ca5e 100755--- a/t/t2009-checkout-statinfo.sh+++ b/t/t2009-checkout-statinfo.sh@@ -2,6 +2,9 @@ test_description='checkout should leave clean stat info'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
t/t2010-checkout-ambiguous.sh
+3
index 2e47fe01cf..3f5431e033 100755--- a/t/t2010-checkout-ambiguous.sh+++ b/t/t2010-checkout-ambiguous.sh@@ -2,6 +2,9 @@ test_description='checkout and pathspecs/refspecs ambiguities'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
t/t2011-checkout-invalid-head.sh
+3
index 0e8d56aa76..fede33ff1f 100755--- a/t/t2011-checkout-invalid-head.sh+++ b/t/t2011-checkout-invalid-head.sh@@ -2,6 +2,9 @@ test_description='checkout switching away from an invalid branch'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
t/t2012-checkout-last.sh
+3
index e7ba8c505f..16bf19f7ee 100755--- a/t/t2012-checkout-last.sh+++ b/t/t2012-checkout-last.sh@@ -2,6 +2,9 @@ test_description='checkout can switch to last branch and merge base'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
t/t2015-checkout-unborn.sh
+3
index 37bdcedcc9..669a70c76f 100755--- a/t/t2015-checkout-unborn.sh+++ b/t/t2015-checkout-unborn.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='checkout from unborn branch'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
t/t2017-checkout-orphan.sh
+3
index 655f278c5f..999e976c62 100755--- a/t/t2017-checkout-orphan.sh+++ b/t/t2017-checkout-orphan.sh@@ -7,6 +7,9 @@ test_description='git checkout --orphan Main Tests for --orphan functionality.'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh TEST_FILE=foo
t/t2020-checkout-detach.sh
+3
index b748db9946..45d87c23b1 100755--- a/t/t2020-checkout-detach.sh+++ b/t/t2020-checkout-detach.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='checkout into detached HEAD state'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh check_detached () {
index 698d9cc4f3..dd315ebf04 100755--- a/t/t3204-branch-name-interpretation.sh+++ b/t/t3204-branch-name-interpretation.sh@@ -6,6 +6,9 @@ Branch name arguments are usually names which are taken to be inside of refs/heads/, but we interpret some magic syntax like @{-1}, @{upstream}, etc. This script aims to check the behavior of those corner cases. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh expect_branch() {
t/t3205-branch-color.sh
+3
index 289625c464..8b54a9252b 100755--- a/t/t3205-branch-color.sh+++ b/t/t3205-branch-color.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='basic branch output coloring'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'set up some sample branches' '
t/t3206-range-diff.sh
+3
index 6eb344be03..3813ddc85e 100755--- a/t/t3206-range-diff.sh+++ b/t/t3206-range-diff.sh@@ -2,6 +2,9 @@ test_description='range-diff tests'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # Note that because of the range-diff's heuristics, test_commit does more
t/t3210-pack-refs.sh
+3
index f41b2afb99..90eea19564 100755--- a/t/t3210-pack-refs.sh+++ b/t/t3210-pack-refs.sh@@ -9,6 +9,9 @@ test_description='git pack-refs should not change the branch semantic This test runs git pack-refs and git show-ref and checks that the branch semantic is still the same. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'enable reflogs' '
t/t3211-peel-ref.sh
+3
index 3b7caca421..f3d9c6b6b6 100755--- a/t/t3211-peel-ref.sh+++ b/t/t3211-peel-ref.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='tests for the peel_ref optimization of packed-refs'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'create annotated tag in refs/tags' '
t/t3302-notes-index-expensive.sh
+3
index 7217c5e222..1564befe00 100755--- a/t/t3302-notes-index-expensive.sh+++ b/t/t3302-notes-index-expensive.sh@@ -5,6 +5,9 @@ test_description='Test commit notes index (expensive!)'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh create_repo () {
t/t3303-notes-subtrees.sh
+3
index 704aee81ef..16f3438355 100755--- a/t/t3303-notes-subtrees.sh+++ b/t/t3303-notes-subtrees.sh@@ -2,6 +2,9 @@ test_description='Test commit notes organized in subtrees'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh number_of_commits=100
t/t3304-notes-mixed.sh
+3
index 1709e8c00b..6a7b8e2829 100755--- a/t/t3304-notes-mixed.sh+++ b/t/t3304-notes-mixed.sh@@ -2,6 +2,9 @@ test_description='Test notes trees that also contain non-notes'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh number_of_commits=100
t/t3320-notes-merge-worktrees.sh
+3
index 823fdbda1f..f86975414c 100755--- a/t/t3320-notes-merge-worktrees.sh+++ b/t/t3320-notes-merge-worktrees.sh@@ -5,6 +5,9 @@ test_description='Test merging of notes trees in multiple worktrees'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup commit' '
t/t3400-rebase.sh
+3
index 40d2975995..61577591d0 100755--- a/t/t3400-rebase.sh+++ b/t/t3400-rebase.sh@@ -8,6 +8,9 @@ test_description='git rebase assorted tests This test runs git rebase and checks that the author information is not lost among other things. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh GIT_AUTHOR_NAME=author@name
t/t3402-rebase-merge.sh
+3
index 6e032716a6..d79a11b686 100755--- a/t/t3402-rebase-merge.sh+++ b/t/t3402-rebase-merge.sh@@ -5,6 +5,9 @@ test_description='git rebase --merge test'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh T="A quick brown fox
t/t3403-rebase-skip.sh
+3
index a927774910..c9936cb1d9 100755--- a/t/t3403-rebase-skip.sh+++ b/t/t3403-rebase-skip.sh@@ -5,6 +5,9 @@ test_description='git rebase --merge --skip tests'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY"/lib-rebase.sh
t/t3404-rebase-interactive.sh
+3
index 1e56696e4f..9c91524e12 100755--- a/t/t3404-rebase-interactive.sh+++ b/t/t3404-rebase-interactive.sh@@ -25,6 +25,9 @@ Initial setup: where A, B, D and G all touch file1, and one, two, three, four all touch file "conflict". '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY"/lib-rebase.sh
t/t3405-rebase-malformed.sh
+3
index 860e63e444..d8f6d2e3cb 100755--- a/t/t3405-rebase-malformed.sh+++ b/t/t3405-rebase-malformed.sh@@ -2,6 +2,9 @@ test_description='rebase should handle arbitrary git message'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY"/lib-rebase.sh
t/t3406-rebase-message.sh
+3
index 4afc528165..863db3ac4c 100755--- a/t/t3406-rebase-message.sh+++ b/t/t3406-rebase-message.sh@@ -2,6 +2,9 @@ test_description='messages from rebase operation'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
t/t3407-rebase-abort.sh
+3
index 97efea0f56..e3c1851f40 100755--- a/t/t3407-rebase-abort.sh+++ b/t/t3407-rebase-abort.sh@@ -2,6 +2,9 @@ test_description='git rebase --abort tests'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh ### Test that we handle space characters properly
t/t3408-rebase-multi-line.sh
+3
index d2bd7c17b0..6dd56c4c15 100755--- a/t/t3408-rebase-multi-line.sh+++ b/t/t3408-rebase-multi-line.sh@@ -2,6 +2,9 @@ test_description='rebasing a commit with multi-line first paragraph.'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success setup '
t/t3409-rebase-preserve-merges.sh
+3
index 3b340f1ece..609efc96f9 100755--- a/t/t3409-rebase-preserve-merges.sh+++ b/t/t3409-rebase-preserve-merges.sh@@ -6,6 +6,9 @@ test_description='git rebase -p should preserve merges Run "git rebase -p" and check that merges are properly carried along '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh if ! test_have_prereq REBASE_P; then
t/t3412-rebase-root.sh
+3
index 21632a984e..07597643c5 100755--- a/t/t3412-rebase-root.sh+++ b/t/t3412-rebase-root.sh@@ -4,6 +4,9 @@ test_description='git rebase --root Tests if git rebase --root --onto <newparent> can rebase the root commit. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh log_with_names () {
t/t3413-rebase-hook.sh
+3
index b6833e9a5f..86a1b82d65 100755--- a/t/t3413-rebase-hook.sh+++ b/t/t3413-rebase-hook.sh@@ -2,6 +2,9 @@ test_description='git rebase with its hook(s)'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success setup '
index 9c2548423b..0f5b814aaf 100755--- a/t/t3416-rebase-onto-threedots.sh+++ b/t/t3416-rebase-onto-threedots.sh@@ -2,6 +2,9 @@ test_description='git rebase --onto A...B'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY/lib-rebase.sh"
t/t3418-rebase-continue.sh
+3
index 7a2da972fd..445cb843ba 100755--- a/t/t3418-rebase-continue.sh+++ b/t/t3418-rebase-continue.sh@@ -2,6 +2,9 @@ test_description='git rebase --continue tests'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY"/lib-rebase.sh
t/t3419-rebase-patch-id.sh
+3
index 1f32faa4a4..c5fe58d68b 100755--- a/t/t3419-rebase-patch-id.sh+++ b/t/t3419-rebase-patch-id.sh@@ -2,6 +2,9 @@ test_description='git rebase - test patch id computation'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh scramble () {
t/t3420-rebase-autostash.sh
+3
index ca331733fb..95facc49aa 100755--- a/t/t3420-rebase-autostash.sh+++ b/t/t3420-rebase-autostash.sh@@ -4,6 +4,9 @@ # test_description='git rebase --autostash tests'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success setup '
t/t3427-rebase-subtree.sh
+3
index 5839719ba1..254ed18452 100755--- a/t/t3427-rebase-subtree.sh+++ b/t/t3427-rebase-subtree.sh@@ -4,6 +4,9 @@ test_description='git rebase tests for -Xsubtree This test runs git rebase and tests the subtree strategy. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY"/lib-rebase.sh
index 54120b09d6..d169bc511d 100755--- a/t/t3435-rebase-gpg-sign.sh+++ b/t/t3435-rebase-gpg-sign.sh@@ -5,6 +5,9 @@ test_description='test rebase --[no-]gpg-sign'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY/lib-rebase.sh" . "$TEST_DIRECTORY/lib-gpg.sh"
t/t3500-cherry.sh
+3
index 2b8d9cb38e..99905dd49a 100755--- a/t/t3500-cherry.sh+++ b/t/t3500-cherry.sh@@ -8,6 +8,9 @@ test_description='git cherry should detect patches integrated upstream This test cherry-picks one local change of two into master branch, and checks that git cherry only returns the second patch in the local branch '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh GIT_AUTHOR_EMAIL=bogus_email_address
t/t3501-revert-cherry-pick.sh
+3
index 3669dfb1be..6a10714e22 100755--- a/t/t3501-revert-cherry-pick.sh+++ b/t/t3501-revert-cherry-pick.sh@@ -10,6 +10,9 @@ test_description='test cherry-pick and revert with renames '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success setup '
t/t3502-cherry-pick-merge.sh
+3
index 8b635a196d..774ad9ce14 100755--- a/t/t3502-cherry-pick-merge.sh+++ b/t/t3502-cherry-pick-merge.sh@@ -8,6 +8,9 @@ test_description='cherry picking and reverting a merge '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success setup '
index 6ece1d8573..ff33c6d5c9 100755--- a/t/t3512-cherry-pick-submodule.sh+++ b/t/t3512-cherry-pick-submodule.sh@@ -2,6 +2,9 @@ test_description='cherry-pick can handle submodules'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY"/lib-submodule-update.sh
t/t3600-rm.sh
+3
index efec8d13b6..3baa64bf99 100755--- a/t/t3600-rm.sh+++ b/t/t3600-rm.sh@@ -5,6 +5,9 @@ test_description='Test of the various options to git rm.'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # Setup some files to be removed, some with funny characters
index f852136585..8014cd684b 100755--- a/t/t4041-diff-submodule-option.sh+++ b/t/t4041-diff-submodule-option.sh@@ -9,6 +9,9 @@ test_description='Support for verbose submodule differences in git diff This test tries to verify the sanity of the --submodule option of git diff. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # Tested non-UTF-8 encoding
t/t4048-diff-combined-binary.sh
+3
index 7f9ad9fa3d..e2780e697a 100755--- a/t/t4048-diff-combined-binary.sh+++ b/t/t4048-diff-combined-binary.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='combined and merge diff handle binary files and textconv'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup binary merge conflict' '
t/t4052-stat-output.sh
+3
index 28c053849a..a9aef7f986 100755--- a/t/t4052-stat-output.sh+++ b/t/t4052-stat-output.sh@@ -5,6 +5,9 @@ test_description='test --stat output of various commands'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY"/lib-terminal.sh
index 0b78573733..71af157bf9 100755--- a/t/t4057-diff-combined-paths.sh+++ b/t/t4057-diff-combined-paths.sh@@ -2,6 +2,9 @@ test_description='combined diff show only paths that are different to all parents'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # verify that diffc.expect matches output of
index 6331f63b12..1983f1ebbe 100755--- a/t/t4066-diff-emit-delay.sh+++ b/t/t4066-diff-emit-delay.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='test combined/stat/moved interaction'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # This test covers a weird 3-way interaction between "--cc -p", which will run
t/t4068-diff-symmetric-merge-base.sh
+3
index 03487cc945..55d47352ba 100755--- a/t/t4068-diff-symmetric-merge-base.sh+++ b/t/t4068-diff-symmetric-merge-base.sh@@ -2,6 +2,9 @@ test_description='behavior of diff with symmetric-diff setups and --merge-base'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # build these situations:
index a080325098..981b83513a 100755--- a/t/t4214-log-graph-octopus.sh+++ b/t/t4214-log-graph-octopus.sh@@ -2,6 +2,9 @@ test_description='git log --graph of skewed left octopus merge.'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY"/lib-log-graph.sh
t/t4216-log-bloom.sh
+3
index d11040ce41..b3f3820dbb 100755--- a/t/t4216-log-bloom.sh+++ b/t/t4216-log-bloom.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='git log for a path with Bloom filters'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh GIT_TEST_COMMIT_GRAPH=0
t/t4253-am-keep-cr-dos.sh
+3
index 6e1b73ec3a..ec7ba62d67 100755--- a/t/t4253-am-keep-cr-dos.sh+++ b/t/t4253-am-keep-cr-dos.sh@@ -6,6 +6,9 @@ test_description='git-am mbox with dos line ending. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # Three patches which will be added as files with dos line ending.
t/t5150-request-pull.sh
+3
index c1811ea0f4..752e1fb2d2 100755--- a/t/t5150-request-pull.sh+++ b/t/t5150-request-pull.sh@@ -2,6 +2,9 @@ test_description='Test workflows involving pull request.'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh if ! test_have_prereq PERL
index da9d59940d..c70b5db2a0 100755--- a/t/t5312-prune-corruption.sh+++ b/t/t5312-prune-corruption.sh@@ -8,6 +8,9 @@ bail out or to proceed using it as a reachable tip, but it is _not_ OK to proceed as if it did not exist. Otherwise we might silently delete objects that cannot be recovered. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'disable reflogs' '
t/t5317-pack-objects-filter-objects.sh
+3
index dc0446574b..f19c521292 100755--- a/t/t5317-pack-objects-filter-objects.sh+++ b/t/t5317-pack-objects-filter-objects.sh@@ -2,6 +2,9 @@ test_description='git pack-objects using object filtering'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # Test blob:none filter.
index 235fb7686a..1f5b33b562 100755--- a/t/t5405-send-pack-rewind.sh+++ b/t/t5405-send-pack-rewind.sh@@ -2,6 +2,9 @@ test_description='forced push to replace commit we do not have'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success setup '
t/t5407-post-rewrite-hook.sh
+3
index 80750a817e..78bffa64d7 100755--- a/t/t5407-post-rewrite-hook.sh+++ b/t/t5407-post-rewrite-hook.sh@@ -4,6 +4,9 @@ # test_description='Test the post-rewrite hook.'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
t/t5410-receive-pack-alternates.sh
+3
index f00d0da860..30a4e6bb1a 100755--- a/t/t5410-receive-pack-alternates.sh+++ b/t/t5410-receive-pack-alternates.sh@@ -2,6 +2,9 @@ test_description='git receive-pack with alternate ref filtering'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
t/t5500-fetch-pack.sh
+3
index 3557374312..4edb8c196e 100755--- a/t/t5500-fetch-pack.sh+++ b/t/t5500-fetch-pack.sh@@ -5,6 +5,9 @@ test_description='Testing multi_ack pack fetching'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # Test fetch-pack/upload-pack pair.
index 7a46cbdbe6..e15a472e4c 100755--- a/t/t5502-quickfetch.sh+++ b/t/t5502-quickfetch.sh@@ -2,6 +2,9 @@ test_description='test quickfetch from local'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success setup '
t/t5503-tagfollow.sh
+3
index 6041a4dd32..cd1f407174 100755--- a/t/t5503-tagfollow.sh+++ b/t/t5503-tagfollow.sh@@ -2,6 +2,9 @@ test_description='test automatic tag following'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # End state of the repository:
t/t5504-fetch-receive-strict.sh
+3
index 1a16ac4c0d..7fe21b176d 100755--- a/t/t5504-fetch-receive-strict.sh+++ b/t/t5504-fetch-receive-strict.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='fetch/receive strict mode'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup and inject "corrupt or missing" object' '
index bd202ec6f3..f12a83f82b 100755--- a/t/t5514-fetch-multiple.sh+++ b/t/t5514-fetch-multiple.sh@@ -2,6 +2,9 @@ test_description='fetch --all works correctly'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh setup_repository () {
t/t5516-fetch-push.sh
+3
index d11382f769..7003467523 100755--- a/t/t5516-fetch-push.sh+++ b/t/t5516-fetch-push.sh@@ -14,6 +14,9 @@ This test checks the following functionality: * reflogs '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh D=$(pwd)
t/t5517-push-mirror.sh
+3
index e4edd56404..aa6405b452 100755--- a/t/t5517-push-mirror.sh+++ b/t/t5517-push-mirror.sh@@ -2,6 +2,9 @@ test_description='pushing to a mirror repository'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh D=$(pwd)
t/t5518-fetch-exit-status.sh
+3
index c2060bb870..a94d0744d0 100755--- a/t/t5518-fetch-exit-status.sh+++ b/t/t5518-fetch-exit-status.sh@@ -5,6 +5,9 @@ test_description='fetch exit status test'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success setup '
t/t5519-push-alternates.sh
+3
index 11fcd37700..0f199d0ccb 100755--- a/t/t5519-push-alternates.sh+++ b/t/t5519-push-alternates.sh@@ -2,6 +2,9 @@ test_description='push to a repository that borrows from elsewhere'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success setup '
t/t5520-pull.sh
+3
index 9fae07cdfa..b6b21c6cd1 100755--- a/t/t5520-pull.sh+++ b/t/t5520-pull.sh@@ -2,6 +2,9 @@ test_description='pulling into void'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh modify () {
index a55202d2d3..6de384a5ea 100755--- a/t/t5537-fetch-shallow.sh+++ b/t/t5537-fetch-shallow.sh@@ -2,6 +2,9 @@ test_description='fetch/clone from a shallow clone'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh commit() {
t/t5538-push-shallow.sh
+3
index ecbf84d21c..1253429d5d 100755--- a/t/t5538-push-shallow.sh+++ b/t/t5538-push-shallow.sh@@ -2,6 +2,9 @@ test_description='push from/to a shallow clone'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh commit() {
t/t5539-fetch-http-shallow.sh
+3
index 82aa99ae87..1da2a7533e 100755--- a/t/t5539-fetch-http-shallow.sh+++ b/t/t5539-fetch-http-shallow.sh@@ -2,6 +2,9 @@ test_description='fetch/clone from a shallow clone over http'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY"/lib-httpd.sh start_httpd
t/t5540-http-push-webdav.sh
+3
index 450321fddb..751116e123 100755--- a/t/t5540-http-push-webdav.sh+++ b/t/t5540-http-push-webdav.sh@@ -7,6 +7,9 @@ test_description='test WebDAV http-push This test runs various sanity checks on http-push.'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh if git http-push > /dev/null 2>&1 || [ $? -eq 128 ]
t/t5541-http-push-smart.sh
+3
index 187454f5dd..2836b87239 100755--- a/t/t5541-http-push-smart.sh+++ b/t/t5541-http-push-smart.sh@@ -4,6 +4,9 @@ # test_description='test smart pushing over http via http-backend'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh ROOT_PATH="$PWD"
t/t5542-push-http-shallow.sh
+3
index ddc1db722d..0feec9c449 100755--- a/t/t5542-push-http-shallow.sh+++ b/t/t5542-push-http-shallow.sh@@ -2,6 +2,9 @@ test_description='push from/to a shallow clone over http'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY"/lib-httpd.sh start_httpd
t/t5543-atomic-push.sh
+3
index 620c30d58f..16a8fc7535 100755--- a/t/t5543-atomic-push.sh+++ b/t/t5543-atomic-push.sh@@ -2,6 +2,9 @@ test_description='pushing to a repository using the atomic push option'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh mk_repo_pair () {
t/t5545-push-options.sh
+3
index 38e6f7340e..202d75aebe 100755--- a/t/t5545-push-options.sh+++ b/t/t5545-push-options.sh@@ -2,6 +2,9 @@ test_description='pushing to a repository using push options'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh mk_repo_pair () {
t/t5550-http-fetch-dumb.sh
+3
index 483578b2d7..9ec91792c3 100755--- a/t/t5550-http-fetch-dumb.sh+++ b/t/t5550-http-fetch-dumb.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='test dumb fetching over http via static file'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY"/lib-httpd.sh start_httpd
t/t5551-http-fetch-smart.sh
+3
index e40e9ed52f..310b89dbab 100755--- a/t/t5551-http-fetch-smart.sh+++ b/t/t5551-http-fetch-smart.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='test smart fetching over http via http-backend'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY"/lib-httpd.sh start_httpd
index 8b0d607df1..ba63ba8f42 100755--- a/t/t5610-clone-detached.sh+++ b/t/t5610-clone-detached.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='test cloning a repository with detached HEAD'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh head_is_detached() {
t/t5611-clone-config.sh
+3
index 8e0fd39823..be4ae10c82 100755--- a/t/t5611-clone-config.sh+++ b/t/t5611-clone-config.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='tests for git clone -c key=value'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'clone -c sets config in cloned repo' '
t/t5612-clone-refspec.sh
+3
index e3b436d8ae..9e37f7fef7 100755--- a/t/t5612-clone-refspec.sh+++ b/t/t5612-clone-refspec.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='test refspec written by clone-command'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
t/t5616-partial-clone.sh
+3
index f4d49d8335..b2c3ed4088 100755--- a/t/t5616-partial-clone.sh+++ b/t/t5616-partial-clone.sh@@ -2,6 +2,9 @@ test_description='git partial clone'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # create a normal "src" repo where we can later create new commits.
t/t5617-clone-submodules-remote.sh
+3
index 1a041df10b..cba468fc53 100755--- a/t/t5617-clone-submodules-remote.sh+++ b/t/t5617-clone-submodules-remote.sh@@ -2,6 +2,9 @@ test_description='Test cloning repos with submodules using remote-tracking branches'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh pwd=$(pwd)
t/t5700-protocol-v1.sh
+3
index 022901b9eb..7f0056c1ed 100755--- a/t/t5700-protocol-v1.sh+++ b/t/t5700-protocol-v1.sh@@ -8,6 +8,9 @@ TEST_NO_CREATE_REPO=1 GIT_TEST_PROTOCOL_VERSION=0 export GIT_TEST_PROTOCOL_VERSION+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # Test protocol v1 with 'git://' transport
index 7d5b17909b..f1f77fe089 100755--- a/t/t5702-protocol-v2.sh+++ b/t/t5702-protocol-v2.sh@@ -4,6 +4,9 @@ test_description='test git wire-protocol version 2' TEST_NO_CREATE_REPO=1+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # Test protocol v2 with 'git://' transport
index 7531262a5e..19a56f4a4d 100755--- a/t/t6101-rev-parse-parents.sh+++ b/t/t6101-rev-parse-parents.sh@@ -5,6 +5,9 @@ test_description='Test git rev-parse with different parent options'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_cmp_rev_output () {
t/t6110-rev-list-sparse.sh
+3
index 656ac7fe9d..69411862d6 100755--- a/t/t6110-rev-list-sparse.sh+++ b/t/t6110-rev-list-sparse.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='operations that cull histories in unusual ways'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success setup '
t/t6111-rev-list-treesame.sh
+3
index 4244638285..58b8d42bf3 100755--- a/t/t6111-rev-list-treesame.sh+++ b/t/t6111-rev-list-treesame.sh@@ -13,6 +13,9 @@ test_description='TREESAME and limiting'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh note () {
t/t6112-rev-list-filters-objects.sh
+3
index de0e5a5d36..5f39c3adb3 100755--- a/t/t6112-rev-list-filters-objects.sh+++ b/t/t6112-rev-list-filters-objects.sh@@ -2,6 +2,9 @@ test_description='git rev-list using object filtering'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # Test the blob:none filter.
t/t6120-describe.sh
+3
index f822d5d328..360e65d3b9 100755--- a/t/t6120-describe.sh+++ b/t/t6120-describe.sh@@ -11,6 +11,9 @@ test_description='test describe' # # First parent of a merge commit is on the same line, second parent below.+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh check_describe () {
index b1c3d4dda4..bdf8169456 100755--- a/t/t6404-recursive-merge.sh+++ b/t/t6404-recursive-merge.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='Test merge without common ancestors'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # This scenario is based on a real-world repository of Shawn Pearce.
t/t6405-merge-symlinks.sh
+3
index 6c0a90d044..140e9e6ce6 100755--- a/t/t6405-merge-symlinks.sh+++ b/t/t6405-merge-symlinks.sh@@ -8,6 +8,9 @@ test_description='merging symlinks on filesystem w/o symlink support. This tests that git merge-recursive writes merge results as plain files if core.symlinks is false.'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
index 2eddcc7664..32c0b62496 100755--- a/t/t6415-merge-dir-to-symlink.sh+++ b/t/t6415-merge-dir-to-symlink.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='merging when a directory was replaced with a symlink'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'create a commit where dir a/b changed to symlink' '
index 531850d834..9996a94431 100755--- a/t/t6419-merge-ignorecase.sh+++ b/t/t6419-merge-ignorecase.sh@@ -2,6 +2,9 @@ test_description='git-merge with case-changing rename on case-insensitive file system'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh if ! test_have_prereq CASE_INSENSITIVE_FS
t/t6422-merge-rename-corner-cases.sh
+3
index 78bfaf17f0..70c8af7f51 100755--- a/t/t6422-merge-rename-corner-cases.sh+++ b/t/t6422-merge-rename-corner-cases.sh@@ -3,6 +3,9 @@ test_description="recursive merge corner cases w/ renames but not criss-crosses" # t6036 has corner cases that involve both criss-cross merges and renames+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY"/lib-merge.sh
index 3d9fae68c4..7e877e96e2 100755--- a/t/t6434-merge-recursive-rename-options.sh+++ b/t/t6434-merge-recursive-rename-options.sh@@ -26,6 +26,9 @@ they are rounded down (see, e.g., Documentation/diff-generate-patch.txt, which mentions this in a different context). '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh get_expected_stages () {
t/t6436-merge-overwrite.sh
+3
index dd9376842f..7d5691c1b4 100755--- a/t/t6436-merge-overwrite.sh+++ b/t/t6436-merge-overwrite.sh@@ -4,6 +4,9 @@ test_description='git-merge Do not overwrite changes.'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
t/t6437-submodule-merge.sh
+3
index 3ead2b726f..14fa46edf3 100755--- a/t/t6437-submodule-merge.sh+++ b/t/t6437-submodule-merge.sh@@ -2,6 +2,9 @@ test_description='merging with submodules'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh #
index 8a3bb4105b..bda5069044 100755--- a/t/t6501-freshen-objects.sh+++ b/t/t6501-freshen-objects.sh@@ -25,6 +25,9 @@ # to refer to an existing tree). test_description='check pruning of dependent objects'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # We care about reachability, so we do not want to use
index 05f411c821..0e3086c4a6 100755--- a/t/t7004-tag.sh+++ b/t/t7004-tag.sh@@ -7,6 +7,9 @@ test_description='git tag Tests for operations with tags.'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY"/lib-gpg.sh . "$TEST_DIRECTORY"/lib-terminal.sh
t/t7030-verify-tag.sh
+3
index 5c5bc32ccb..bcb3c4f035 100755--- a/t/t7030-verify-tag.sh+++ b/t/t7030-verify-tag.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='signed tag tests'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh . "$TEST_DIRECTORY/lib-gpg.sh"
t/t7060-wtstatus.sh
+3
index d5218743e9..e65ca019eb 100755--- a/t/t7060-wtstatus.sh+++ b/t/t7060-wtstatus.sh@@ -2,6 +2,9 @@ test_description='basic work tree status reporting'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success setup '
t/t7063-status-untracked-cache.sh
+3
index a682a3d826..ae60942347 100755--- a/t/t7063-status-untracked-cache.sh+++ b/t/t7063-status-untracked-cache.sh@@ -2,6 +2,9 @@ test_description='test untracked cache'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # On some filesystems (e.g. FreeBSD's ext2 and ufs) directory mtime
t/t7064-wtstatus-pv2.sh
+3
index 537787e598..07954b2142 100755--- a/t/t7064-wtstatus-pv2.sh+++ b/t/t7064-wtstatus-pv2.sh@@ -5,6 +5,9 @@ test_description='git status --porcelain=v2 This test exercises porcelain V2 output for git status.'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh
index f011ad7eec..8872c32f94 100755--- a/t/t7113-post-index-change-hook.sh+++ b/t/t7113-post-index-change-hook.sh@@ -2,6 +2,9 @@ test_description='post index change hook'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
t/t7201-co.sh
+3
index b36a93056f..12567543c4 100755--- a/t/t7201-co.sh+++ b/t/t7201-co.sh@@ -20,6 +20,9 @@ Test switching across them. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_tick
t/t7400-submodule-basic.sh
+3
index fec7e0299d..8addc0c8c9 100755--- a/t/t7400-submodule-basic.sh+++ b/t/t7400-submodule-basic.sh@@ -9,6 +9,9 @@ This test tries to verify basic sanity of the init, update and status subcommands of git submodule. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'submodule deinit works on empty repository' '
t/t7403-submodule-sync.sh
+3
index 0726799e74..c95559bed5 100755--- a/t/t7403-submodule-sync.sh+++ b/t/t7403-submodule-sync.sh@@ -8,6 +8,9 @@ test_description='git submodule sync These tests exercise the "git submodule sync" subcommand. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success setup '
t/t7406-submodule-update.sh
+3
index acb8766ac2..825b1a7e0c 100755--- a/t/t7406-submodule-update.sh+++ b/t/t7406-submodule-update.sh@@ -9,6 +9,9 @@ This test verifies that "git submodule update" detaches the HEAD of the submodule and "git submodule update --rebase/--merge" does not detach the HEAD. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh
t/t7407-submodule-foreach.sh
+3
index 6b2aa917e1..632defc53b 100755--- a/t/t7407-submodule-foreach.sh+++ b/t/t7407-submodule-foreach.sh@@ -9,6 +9,9 @@ This test verifies that "git submodule foreach" correctly visits all submodules that are currently checked out. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh
t/t7409-submodule-detached-work-tree.sh
+3
index fc018e3638..e9428e2b59 100755--- a/t/t7409-submodule-detached-work-tree.sh+++ b/t/t7409-submodule-detached-work-tree.sh@@ -10,6 +10,9 @@ on detached working trees ' TEST_NO_CREATE_REPO=1+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'submodule on detached working tree' '
t/t7417-submodule-path-url.sh
+3
index f7e7e94d7b..0a514e951c 100755--- a/t/t7417-submodule-path-url.sh+++ b/t/t7417-submodule-path-url.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='check handling of .gitmodule path with dash'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'create submodule with dash in path' '
index 70afdd06fa..e65645d5e9 100755--- a/t/t7610-mergetool.sh+++ b/t/t7610-mergetool.sh@@ -7,6 +7,9 @@ test_description='git mergetool Testing basic merge tool invocation'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # All the mergetool test work by checking out a temporary branch based
t/t7611-merge-abort.sh
+3
index 7c84a518aa..ed072bfb19 100755--- a/t/t7611-merge-abort.sh+++ b/t/t7611-merge-abort.sh@@ -22,6 +22,9 @@ Next, test git merge --abort with the following variables: - changed/unchanged worktree after merge - changed/unchanged index after merge '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup' '
index c1b8446f49..ea4eeee35f 100755--- a/t/t7614-merge-signoff.sh+++ b/t/t7614-merge-signoff.sh@@ -5,6 +5,9 @@ test_description='git merge --signoff This test runs git merge --signoff and makes sure that it works. '+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # Setup test files
t/t7701-repack-unpack-unreachable.sh
+3
index 48261ba080..375f43a721 100755--- a/t/t7701-repack-unpack-unreachable.sh+++ b/t/t7701-repack-unpack-unreachable.sh@@ -2,6 +2,9 @@ test_description='git repack works correctly'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh fsha1=
index 9c353ab222..ffce1d1195 100755--- a/t/t8004-blame-with-conflicts.sh+++ b/t/t8004-blame-with-conflicts.sh@@ -3,6 +3,9 @@ # Based on a test case submitted by Björn Steinbrink. test_description='git blame on conflicted files'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh test_expect_success 'setup first case' '
index a08f72596a..3d160d939e 100755--- a/t/t9001-send-email.sh+++ b/t/t9001-send-email.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='git send-email'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh # May be altered later in the test
t/t9100-git-svn-basic.sh
+3
index e4bb22034e..9a6f2c38f1 100755--- a/t/t9100-git-svn-basic.sh+++ b/t/t9100-git-svn-basic.sh@@ -6,6 +6,9 @@ test_description='git svn basic tests' GIT_SVN_LC_ALL=${LC_ALL:-$LANG}+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./lib-git-svn.sh case "$GIT_SVN_LC_ALL" in
t/t9145-git-svn-master-branch.sh
+3
index 3bbf341f6a..053571ca5c 100755--- a/t/t9145-git-svn-master-branch.sh+++ b/t/t9145-git-svn-master-branch.sh@@ -3,6 +3,9 @@ # Copyright (c) 2009 Eric Wong # test_description='git svn initial master branch is "trunk" if possible'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./lib-git-svn.sh test_expect_success 'setup test repository' '
index 4a46f31c41..7d23e6ba94 100755--- a/t/t9400-git-cvsserver-server.sh+++ b/t/t9400-git-cvsserver-server.sh@@ -8,6 +8,9 @@ test_description='git-cvsserver access tests read access to a git repository with the cvs CLI client via git-cvsserver server'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh if ! test_have_prereq PERL; then
t/t9401-git-cvsserver-crlf.sh
+3
index c7a0dd84a4..0062341dbf 100755--- a/t/t9401-git-cvsserver-crlf.sh+++ b/t/t9401-git-cvsserver-crlf.sh@@ -9,6 +9,9 @@ test_description='git-cvsserver -kb modes tests -kb mode for binary files when accessing a git repository using cvs CLI client via git-cvsserver server'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh marked_as () {
t/t9402-git-cvsserver-refs.sh
+3
index 6436c91a3c..33b6db1648 100755--- a/t/t9402-git-cvsserver-refs.sh+++ b/t/t9402-git-cvsserver-refs.sh@@ -5,6 +5,9 @@ test_description='git-cvsserver and git refspecs tests ability for git-cvsserver to switch between and compare tags, branches and other git refspecs'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./test-lib.sh #########
t/t9500-gitweb-standalone-no-errors.sh
+3
index b484e3e250..fa36bf5e83 100755--- a/t/t9500-gitweb-standalone-no-errors.sh+++ b/t/t9500-gitweb-standalone-no-errors.sh@@ -10,6 +10,9 @@ commandline, and checks that it would not write any errors or warnings to log.'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./gitweb-lib.sh # ----------------------------------------------------------------------
t/t9501-gitweb-standalone-http-status.sh
+3
index 2a0ffed870..6b0adf28d2 100755--- a/t/t9501-gitweb-standalone-http-status.sh+++ b/t/t9501-gitweb-standalone-http-status.sh@@ -10,6 +10,9 @@ commandline, and checks that it returns the expected HTTP status code and message.'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./gitweb-lib.sh #
t/t9502-gitweb-standalone-parse-output.sh
+3
index e38cbc97d3..76d90eccd8 100755--- a/t/t9502-gitweb-standalone-parse-output.sh+++ b/t/t9502-gitweb-standalone-parse-output.sh@@ -10,6 +10,9 @@ commandline, and checks that it produces the correct output, either in the HTTP header or the actual script output.'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./gitweb-lib.sh # ----------------------------------------------------------------------
t/t9600-cvsimport.sh
+3
index 251fdd66c4..9257d664f2 100755--- a/t/t9600-cvsimport.sh+++ b/t/t9600-cvsimport.sh@@ -1,6 +1,9 @@ #!/bin/sh test_description='git cvsimport basic tests'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./lib-cvs.sh if ! test_have_prereq NOT_ROOT; then
t/t9601-cvsimport-vendor-branch.sh
+3
index 827d39f5bf..700c2688d2 100755--- a/t/t9601-cvsimport-vendor-branch.sh+++ b/t/t9601-cvsimport-vendor-branch.sh@@ -32,6 +32,9 @@ # tag has been removed. test_description='git cvsimport handling of vendor branches'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./lib-cvs.sh setup_cvs_test_repository t9601
t/t9602-cvsimport-branches-tags.sh
+3
index e1db323f54..7b1fb36e67 100755--- a/t/t9602-cvsimport-branches-tags.sh+++ b/t/t9602-cvsimport-branches-tags.sh@@ -4,6 +4,9 @@ # t9602/README. test_description='git cvsimport handling of branches and tags'+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME+ . ./lib-cvs.sh setup_cvs_test_repository t9602