Skip to content

Commit 8a03762

Browse files
committed
Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
This topic branch contains a patch that made it into Git for Windows v2.45.1 but not into Git v2.45.1 (because the latter does not come with symlink support on Windows). Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 8e8746f + 08fb43a commit 8a03762

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

t/t5601-clone.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
77

88
. ./test-lib.sh
99

10+
# This test script contains test cases that need to create symbolic links. To
11+
# make sure that these test cases are exercised in Git for Windows, where (for
12+
# historical reasons) `ln -s` creates copies by default, let's specifically ask
13+
# for `ln -s` to create symbolic links whenever possible.
14+
if test_have_prereq MINGW
15+
then
16+
MSYS=${MSYS+$MSYS }winsymlinks:nativestrict
17+
export MSYS
18+
fi
19+
1020
X=
1121
test_have_prereq !MINGW || X=.exe
1222

t/t7406-submodule-update.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
1414

1515
. ./test-lib.sh
1616

17+
# This test script contains test cases that need to create symbolic links. To
18+
# make sure that these test cases are exercised in Git for Windows, where (for
19+
# historical reasons) `ln -s` creates copies by default, let's specifically ask
20+
# for `ln -s` to create symbolic links whenever possible.
21+
if test_have_prereq MINGW
22+
then
23+
MSYS=${MSYS+$MSYS }winsymlinks:nativestrict
24+
export MSYS
25+
fi
1726

1827
compare_head()
1928
{

0 commit comments

Comments
 (0)