Merge branch 'jk/disable-pack-reuse-when-broken'
[gitweb.git] / builtin / check-ignore.c
index 1d73d3ca3d0509d71b927d685f3239cdab3cc885..d2293b22e1c294131e392fc17084ff4eaecdd02d 100644 (file)
@@ -101,7 +101,8 @@ static int check_ignore(struct dir_struct *dir,
                full_path = pathspec.items[i].match;
                exclude = NULL;
                if (!seen[i]) {
-                       exclude = last_exclude_matching(dir, full_path, &dtype);
+                       exclude = last_exclude_matching(dir, &the_index,
+                                                       full_path, &dtype);
                }
                if (!quiet && (exclude || show_non_matching))
                        output_exclude(pathspec.items[i].original, exclude);