remove match_pathspec() in favor of match_pathspec_depth()
[gitweb.git] / builtin / check-ignore.c
index d49c083525741350400929c7d3919126058da327..70537c8d304e1a1940dd4a15d354b45597f6b530 100644 (file)
@@ -94,9 +94,9 @@ static int check_ignore(struct dir_struct *dir,
         * should not be ignored, in order to be consistent with
         * 'git status', 'git add' etc.
         */
-       seen = find_pathspecs_matching_against_index(pathspec.raw);
+       seen = find_pathspecs_matching_against_index(&pathspec);
        for (i = 0; i < pathspec.nr; i++) {
-               full_path = pathspec.raw[i];
+               full_path = pathspec.items[i].match;
                exclude = NULL;
                if (!seen[i]) {
                        exclude = last_exclude_matching(dir, full_path, &dtype);