aboutsummaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
Diffstat (limited to 'compat')
-rw-r--r--compat/mingw.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/compat/mingw.c b/compat/mingw.c
index 26e64c6a5a..0fe00a5b70 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -2862,6 +2862,15 @@ static void setup_windows_environment(void)
if (!tmp && (tmp = getenv("USERPROFILE")))
setenv("HOME", tmp, 1);
}
+
+ /*
+ * Change 'core.symlinks' default to false, unless native symlinks are
+ * enabled in MSys2 (via 'MSYS=winsymlinks:nativestrict'). Thus we can
+ * run the test suite (which doesn't obey config files) with or without
+ * symlink support.
+ */
+ if (!(tmp = getenv("MSYS")) || !strstr(tmp, "winsymlinks:nativestrict"))
+ has_symlinks = 0;
}
static void get_current_user_sid(PSID *sid, HANDLE *linked_token)