summaryrefslogtreecommitdiff
path: root/unpack-trees.c
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2021-02-12 15:47:47 +0100
committerLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2021-02-12 15:47:47 +0100
commitfb049fd85b298d386dca2e0bcf74a1f52a7b2038 (patch)
tree48d5164a342eb50fe9bacbdd3be510a786135062 /unpack-trees.c
parentGit 2.19.5 (diff)
parentGit 2.18.5 (diff)
downloadtgif-fb049fd85b298d386dca2e0bcf74a1f52a7b2038.tar.xz
Sync with 2.18.5
* maint-2.18: 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 705054a669..7e023daca3 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -352,6 +352,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);