Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-05-07 06:47:39 +0300
committerJunio C Hamano <gitster@pobox.com>2021-05-07 06:47:39 +0300
commitbb2feec17f49e93e0b983c5d895b2bf590ff92f3 (patch)
tree7bc1000205cfeda64891c23069dd196deabbb85d /read-cache.c
parent6d99f31ddafb064795d1d8f9b9bd930296f7069e (diff)
parentbccc37fdc7ec66377af454417013f7612aef75e6 (diff)
Merge branch 'ad/cygwin-no-backslashes-in-paths'
Cygwin pathname handling fix. * ad/cygwin-no-backslashes-in-paths: cygwin: disallow backslashes in file names
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index 72a1d339c9..eb66fddb1b 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -1011,7 +1011,7 @@ inside:
}
}
if (protect_ntfs) {
-#ifdef GIT_WINDOWS_NATIVE
+#if defined GIT_WINDOWS_NATIVE || defined __CYGWIN__
if (c == '\\')
return 0;
#endif