Merge branch 'ab/submodule-relative-url-tests'
[gitweb.git] / builtin / submodule--helper.c
index a3c4564c6c87255449a0a4fc800e81d2915954e2..a4440a31094323581c696f4eb7b9048b02d3462e 100644 (file)
@@ -331,7 +331,7 @@ static int module_list_compute(int argc, const char **argv,
        for (i = 0; i < active_nr; i++) {
                const struct cache_entry *ce = active_cache[i];
 
-               if (!match_pathspec(pathspec, ce->name, ce_namelen(ce),
+               if (!match_pathspec(&the_index, pathspec, ce->name, ce_namelen(ce),
                                    0, ps_matched, 1) ||
                    !S_ISGITLINK(ce->ce_mode))
                        continue;