summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2021-02-12 14:47:42 (GMT)
committerJohannes Schindelin <johannes.schindelin@gmx.de>2021-02-12 14:47:42 (GMT)
commit9b77cec89b64f0910df911952ccee0cdf0046f48 (patch)
tree7862bb9a330acb1c2ab3f6273d8b659249d3a253 /compat
parentba6f0905fdb9e65c1ac5fbc79c9a4ef0b59b3e68 (diff)
parent6b82d3eea625d83af067dc0ed57e361711cfb8b7 (diff)
downloadgit-9b77cec89b64f0910df911952ccee0cdf0046f48.zip
git-9b77cec89b64f0910df911952ccee0cdf0046f48.tar.gz
git-9b77cec89b64f0910df911952ccee0cdf0046f48.tar.bz2
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
Diffstat (limited to 'compat')
-rw-r--r--compat/mingw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/compat/mingw.c b/compat/mingw.c
index 0c0c474..1ececf7 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -283,6 +283,8 @@ int mingw_rmdir(const char *pathname)
ask_yes_no_if_possible("Deletion of directory '%s' failed. "
"Should I try again?", pathname))
ret = _wrmdir(wpathname);
+ if (!ret)
+ invalidate_lstat_cache();
return ret;
}