Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-03-09 03:09:07 +0300
committerJunio C Hamano <gitster@pobox.com>2021-03-09 03:09:07 +0300
commit56a57652ef8e4ca2f108a8719b8caeed5e153c95 (patch)
treed8569b5c8e1b6e276a0434fb7cfb82d210e289b1 /unpack-trees.c
parent6c46f864e5db7c88fdee1d67dcc20a4451a12ca2 (diff)
parent94f6e3e283f2adfc518b39cfc39291f1c2832ad0 (diff)
Sync with Git 2.30.2 for CVE-2021-21300
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.c')
-rw-r--r--unpack-trees.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/unpack-trees.c b/unpack-trees.c
index f5f668f532..eb8fcda31b 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())