t4018: convert java pattern test to the new infrastructure
[gitweb.git] / pathspec.c
index 2b7f2e2e09cbaf742970e3e20b7eb9c491933c6f..6cb9fd3014a424d11647e48de3b841012ccc2ffe 100644 (file)
@@ -169,7 +169,7 @@ static unsigned prefix_pathspec(struct pathspec_item *item,
                                        magic |= pathspec_magic[i].bit;
                                        break;
                                }
-                               if (!prefixcmp(copyfrom, "prefix:")) {
+                               if (starts_with(copyfrom, "prefix:")) {
                                        char *endptr;
                                        pathspec_prefix = strtol(copyfrom + 7,
                                                                 &endptr, 10);