summaryrefslogtreecommitdiff
path: root/builtin/clone.c
diff options
context:
space:
mode:
authorLibravatar Matheus Tavares <matheus.bernardino@usp.br>2019-07-10 20:59:04 -0300
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-07-11 13:52:16 -0700
commitc4d9c506f7a802ed263071c82319098e3fcd0b3e (patch)
treebb59eabb1d4f451e8dc842c386e16705dd6feb18 /builtin/clone.c
parentclone: use dir-iterator to avoid explicit dir traversal (diff)
downloadtgif-c4d9c506f7a802ed263071c82319098e3fcd0b3e.tar.xz
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/clone.c')
-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;
}