Propagate cache error internal to refresh_cache() via parameter.
[gitweb.git] / builtin-add.c
index 9fcf514dbc4cb76e15b47142e77c4019997ecd5d..871e23f0f60398418f52a9c9a63e6198b5d10c15 100644 (file)
@@ -87,7 +87,7 @@ static void fill_directory(struct dir_struct *dir, const char **pathspec)
        }
 
        /* Read the directory and prune it */
-       read_directory(dir, path, base, baselen);
+       read_directory(dir, path, base, baselen, pathspec);
        if (pathspec)
                prune_directory(dir, pathspec, baselen);
 }