Sync with 2.17.6
* maint-2.17: 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
This commit is contained in:
@ -360,6 +360,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);
|
||||
|
||||
|
Reference in New Issue
Block a user