summaryrefslogtreecommitdiff
path: root/t/t7113-post-index-change-hook.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2020-11-18 23:44:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-11-19 23:44:18 (GMT)
commit01dc81336dc10c8f2350454c755a8a0ab676a9c9 (patch)
tree74230ac15a70592c4178ba53ceef337f5730dd2d /t/t7113-post-index-change-hook.sh
parent5902f5f4608c1857fc04dcae2a0ce6beea31c8f8 (diff)
downloadgit-01dc81336dc10c8f2350454c755a8a0ab676a9c9.zip
git-01dc81336dc10c8f2350454c755a8a0ab676a9c9.tar.gz
git-01dc81336dc10c8f2350454c755a8a0ab676a9c9.tar.bz2
t7[0-4]*: adjust the references to the default branch name "main"
Carefully excluding t7064, which sees independent development elsewhere at the time of writing, we use `main` as the default branch name in t7[0-4]*. This trick was performed via $ (cd t && sed -i -e 's/master/main/g' -e 's/MASTER/MAIN/g' \ -e 's/Master/Main/g' -- t7[0-4]*.sh && git checkout HEAD -- t7064\*) This allows us to define `GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main` for those tests. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7113-post-index-change-hook.sh')
-rwxr-xr-xt/t7113-post-index-change-hook.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t7113-post-index-change-hook.sh b/t/t7113-post-index-change-hook.sh
index 8872c32..688fa99 100755
--- a/t/t7113-post-index-change-hook.sh
+++ b/t/t7113-post-index-change-hook.sh
@@ -2,7 +2,7 @@
test_description='post index change hook'
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
. ./test-lib.sh
@@ -88,7 +88,7 @@ test_expect_success 'test checkout and reset trigger the hook' '
EOF
: force index to be dirty &&
test-tool chmtime +60 dir1/file1.txt &&
- git checkout master &&
+ git checkout main &&
test_path_is_file testsuccess && rm -f testsuccess &&
test_path_is_missing testfailure &&
test-tool chmtime +60 dir1/file1.txt &&