]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t4122-apply-symlink-inside.sh
Merge branch 'js/range-diff-wo-dotdot'
[thirdparty/git.git] / t / t4122-apply-symlink-inside.sh
index 4acb3f336ed3fac10c7ddf68868c3ff56db94978..aa52de401b96ec1e6c7f2c2c6ec87ef4d0d393e7 100755 (executable)
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='apply to deeper directory without getting fooled with symlink'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success setup '
@@ -35,11 +38,11 @@ test_expect_success apply '
 
 test_expect_success 'check result' '
 
-       git diff --exit-code master &&
-       git diff --exit-code --cached master &&
+       git diff --exit-code main &&
+       git diff --exit-code --cached main &&
        test_tick &&
        git commit -m replay &&
-       T1=$(git rev-parse "master^{tree}") &&
+       T1=$(git rev-parse "main^{tree}") &&
        T2=$(git rev-parse "HEAD^{tree}") &&
        test "z$T1" = "z$T2"