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:
authorMatheus Tavares <matheus.bernardino@usp.br>2019-07-11 02:59:04 +0300
committerJunio C Hamano <gitster@pobox.com>2019-07-11 23:52:16 +0300
commitc4d9c506f7a802ed263071c82319098e3fcd0b3e (patch)
treebb59eabb1d4f451e8dc842c386e16705dd6feb18 /builtin
parentff7ccc8c9a6e61a7225c161c743a49ac079f1425 (diff)
clone: replace strcmp by fspathcmp
Replace the use of strcmp by fspathcmp at copy_or_link_directory, which is more permissive/friendly to case-insensitive file systems. Suggested-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index a4ce801a67..62b6a0a352 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -441,7 +441,7 @@ static void copy_or_link_directory(struct strbuf *src, struct strbuf *dest,
}
/* Files that cannot be copied bit-for-bit... */
- if (!strcmp(iter->relative_path, "info/alternates")) {
+ if (!fspathcmp(iter->relative_path, "info/alternates")) {
copy_alternates(src, src_repo);
continue;
}