mirror of
https://github.com/git/git.git
synced 2024-11-28 04:23:30 +08:00
unpack_trees(): start with a fresh lstat cache
We really want to avoid relying on stale information. Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
0d58fef58a
commit
22539ec3b5
@ -349,6 +349,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, index);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user