Skip to content

Commit 61d48a9

Browse files
dschoGit for Windows Build Agent
authored andcommitted
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 f054d8c + 2bf90e4 commit 61d48a9

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
@@ -15,6 +15,15 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
1515
TEST_PASSES_SANITIZE_LEAK=true
1616
. ./test-lib.sh
1717

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

1928
compare_head()
2029
{

0 commit comments

Comments
 (0)