Revert "lstat_cache(): print a warning if doing ping-pong between cache types"
[gitweb.git] / builtin-commit.c
index 7aaa5304c7d573f2f7750d58888621b0e82f3712..d6a3a6203aee399218c89d31ff5cb28f16dc0cc6 100644 (file)
@@ -166,7 +166,7 @@ static int list_paths(struct string_list *list, const char *with_tree,
                struct cache_entry *ce = active_cache[i];
                if (ce->ce_flags & CE_UPDATE)
                        continue;
-               if (!pathspec_match(pattern, m, ce->name, 0))
+               if (!match_pathspec(pattern, ce->name, ce_namelen(ce), 0, m))
                        continue;
                string_list_insert(ce->name, list);
        }