diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2021-02-12 15:47:47 +0100 |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2021-02-12 15:47:47 +0100 |
commit | fb049fd85b298d386dca2e0bcf74a1f52a7b2038 (patch) | |
tree | 48d5164a342eb50fe9bacbdd3be510a786135062 /unpack-trees.c | |
parent | 76b54ee9b9944ee70422ac24884f78769cf264f1 (diff) | |
parent | 6eed462c8f973719799691c4f51b97f7970f2ac4 (diff) | |
download | git-fb049fd85b298d386dca2e0bcf74a1f52a7b2038.tar.gz |
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.c | 3 |
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); |