clone: replace strcmp by fspathcmp
[git/git.git] / builtin / clone.c
index a4ce801..62b6a0a 100644 (file)
@@ -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;
                }