clone: replace strcmp by fspathcmp
[gitweb.git] / builtin / clone.c
index a4ce801a67c54cf3ca8afa63807e8c1ff009ab26..62b6a0a352e8f42b83c03b4a3bd4f445ce280e8a 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;
                }