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>

Matheus Tavares committed Jul 10, 2019 at 20:59 UTC c4d9c506f7a802ed263071c82319098e3fcd0b3e
1 file changed +1 -1
builtin/clone.c
+1 -1
@@ -441,7 +441,7 @@ static void copy_or_link_directory(struct strbuf *src, struct strbuf *dest,
441 }
442
443 /* Files that cannot be copied bit-for-bit... */
444 - if (!strcmp(iter->relative_path, "info/alternates")) {
444 + if (!fspathcmp(iter->relative_path, "info/alternates")) {
445 copy_alternates(src, src_repo);
446 continue;
447 }