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:
Johannes Schindelin
2021-02-12 15:47:42 +01:00
10 changed files with 204 additions and 4 deletions

View File

@ -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);