aboutsummaryrefslogtreecommitdiffstats
path: root/unpack-trees.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2021-02-12 15:49:17 +0100
committerJohannes Schindelin <johannes.schindelin@gmx.de>2021-02-12 15:49:17 +0100
commit804963848e325ff6f4213e53aeda6ef831574e48 (patch)
tree4d823f1bca28046972ceb9ff3962639df9953b77 /unpack-trees.c
parent041bc65923e13313ca1b77681c3b2950b5e0a163 (diff)
parent9fb2a1fb08330795955dcd5af74d2c64ba258d59 (diff)
downloadgit-804963848e325ff6f4213e53aeda6ef831574e48.tar.gz
Sync with 2.19.6
* maint-2.19: 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 545d5668fd..dfea110b42 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -396,6 +396,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);