diff options
Diffstat (limited to 'unpack-trees.c')
-rw-r--r-- | unpack-trees.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unpack-trees.c b/unpack-trees.c index 323280dd48..2344b5e6dd 100644 --- a/unpack-trees.c +++ b/unpack-trees.c @@ -417,6 +417,9 @@ static int check_updates(struct unpack_trees_options *o, progress = get_progress(o, index); + /* Start with clean cache to avoid using any possibly outdated info. */ + invalidate_lstat_cache(); + git_attr_set_direction(GIT_ATTR_CHECKOUT); if (should_update_submodules()) |