diff --git a/unpack-trees.c b/unpack-trees.c index b3be5d542f5fc5..32302ccb6556fe 100644 --- a/unpack-trees.c +++ b/unpack-trees.c @@ -1821,7 +1821,9 @@ static void mark_new_skip_worktree(struct pattern_list *pl, * 2. Widen worktree according to sparse-checkout file. * Matched entries will have skip_wt_flag cleared (i.e. "in") */ + enable_fscache(istate->cache_nr); clear_ce_flags(istate, select_flag, skip_wt_flag, pl, show_progress); + disable_fscache(); } static void populate_from_existing_patterns(struct unpack_trees_options *o,