Win32: Unicode file name support (except dirent)
[gitweb.git] / fetch-pack.c
index 72ec520fda7124e49d41e03ea81310a231841a24..b8a58fa7a542fe166ad71c9b17a4908c81d24a4f 100644 (file)
@@ -511,7 +511,7 @@ static void filter_refs(struct fetch_pack_args *args,
                int keep = 0;
                next = ref->next;
 
-               if (!memcmp(ref->name, "refs/", 5) &&
+               if (starts_with(ref->name, "refs/") &&
                    check_refname_format(ref->name, 0))
                        ; /* trash */
                else {