p5302-pack-index.sh: use the $( ... ) construct for command substitution
[gitweb.git] / builtin / apply.c
index a7e72d57ab0d23ef3becb3fd7d4564d6050efe6e..0189523798f31711ad74eaf3dd90ece9c12fa61a 100644 (file)
@@ -4152,7 +4152,7 @@ static int use_patch(struct patch *p)
        /* See if it matches any of exclude/include rule */
        for (i = 0; i < limit_by_name.nr; i++) {
                struct string_list_item *it = &limit_by_name.items[i];
-               if (!fnmatch(it->string, pathname, 0))
+               if (!wildmatch(it->string, pathname, 0, NULL))
                        return (it->util != NULL);
        }