Merge branch 'js/fsmonitor-refresh-after-discarding-index'
[gitweb.git] / read-cache.c
index 4fad4e3f9ab004c85c0b2614b4d0637809d7e1b8..22e7b9944e35d257b144fe06dce2073c91d4819f 100644 (file)
@@ -2326,6 +2326,7 @@ int discard_index(struct index_state *istate)
        free_name_hash(istate);
        cache_tree_free(&(istate->cache_tree));
        istate->initialized = 0;
+       istate->fsmonitor_has_run_once = 0;
        FREE_AND_NULL(istate->cache);
        istate->cache_alloc = 0;
        discard_split_index(istate);