mergetool: run prompt only if guessed tool
[gitweb.git] / diffcore-order.c
index 1bfcc39f904898b488b5ea0dad1ef3bcb81466ce..97dd3d0095723c194288db0da1b9cfbf400e7e26 100644 (file)
@@ -67,7 +67,7 @@ static int match_order(const char *path)
                strbuf_addstr(&p, path);
                while (p.buf[0]) {
                        char *cp;
-                       if (!fnmatch(order[i], p.buf, 0))
+                       if (!wildmatch(order[i], p.buf, 0, NULL))
                                return i;
                        cp = strrchr(p.buf, '/');
                        if (!cp)