]> git.ipfire.org Git - thirdparty/git.git/blobdiff - unpack-trees.c
clone.c: avoid "exceeds maximum object size" error with GCC v12.x
[thirdparty/git.git] / unpack-trees.c
index 323280dd48b2cb1e7f6e113f58c12d9332574ec4..2344b5e6dd4173332f24c4ab04b2d5e8cd6ba78e 100644 (file)
@@ -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())