reset $pathspec: no need to discard index
[gitweb.git] / builtin / update-index.c
index 74986bf163d4dadb4497a90364c29ac71a801638..ada1dff846f2b77d5f71d69db57a7eca5033b943 100644 (file)
@@ -593,6 +593,7 @@ struct refresh_params {
 static int refresh(struct refresh_params *o, unsigned int flag)
 {
        setup_work_tree();
+       read_cache_preload(NULL);
        *o->has_errors |= refresh_cache(o->flags | flag);
        return 0;
 }