From: Matheus Tavares Date: Sat, 30 Mar 2019 22:49:07 GMT Subject: [GSoC][PATCH v5 7/7] clone: replace strcmp by fspathcmp Message-ID: <20190330224907.3277-8-matheus.bernardino@usp.br> In-Reply-To: <20190330224907.3277-1-matheus.bernardino@usp.br> Replace the use of strcmp by fspathcmp at copy_or_link_directory, which is more permissive/friendly to case-insensitive file systems. Signed-off-by: Matheus Tavares Suggested-by: Nguyễn Thái Ngọc Duy --- builtin/clone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/clone.c b/builtin/clone.c index ebe8d83334..bf56a01638 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -439,7 +439,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, dest, src_repo); continue; } -- 2.20.1