diff --git a/builtin-commit.c b/builtin-commit.c
index 7aaa5304c7d573f2f7750d58888621b0e82f3712..d6a3a6203aee399218c89d31ff5cb28f16dc0cc6 100644 (file)
--- a/builtin-commit.c
+++ b/builtin-commit.c
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);
}