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:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2021-02-12 17:49:41 +0300
committerJohannes Schindelin <johannes.schindelin@gmx.de>2021-02-12 17:49:41 +0300
commitbcf08f33d840b8a6bef347aea3ac2359874c888a (patch)
tree25474f45731a73fa52aa85a9e898fafc34aae7d7 /unpack-trees.c
parentc9808fa014aa88cc306705d308d1d9065d567ddc (diff)
parentc735d7470e75a7a14e9ac2d9ff8876a30615047a (diff)
Sync with 2.21.4
* maint-2.21: Git 2.21.4 Git 2.20.5 Git 2.19.6 Git 2.18.5 Git 2.17.6 unpack_trees(): start with a fresh lstat cache run-command: invalidate lstat cache after a command finished checkout: fix bug that makes checkout follow symlinks in leading path
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 38993c9043..7bd1903464 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -378,6 +378,9 @@ static int check_updates(struct unpack_trees_options *o)
progress = get_progress(o);
+ /* Start with clean cache to avoid using any possibly outdated info. */
+ invalidate_lstat_cache();
+
if (o->update)
git_attr_set_direction(GIT_ATTR_CHECKOUT);