git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
0d58fef
)
unpack_trees(): start with a fresh lstat cache
author
Matheus Tavares
<redacted>
Tue, 2 Feb 2021 21:37:10 +0000
(22:37 +0100)
committer
Johannes Schindelin
<redacted>
Fri, 12 Feb 2021 14:47:02 +0000
(15:47 +0100)
We really want to avoid relying on stale information.
Signed-off-by: Matheus Tavares <redacted>
Signed-off-by: Johannes Schindelin <redacted>
unpack-trees.c
patch
|
blob
|
history
diff --git
a/unpack-trees.c
b/unpack-trees.c
index 88a0b5d250ef1da36747fe0b736df4305979977d..5914e7b8ccda0750f30ebe28ec901afaa6c023dc 100644
(file)
--- a/
unpack-trees.c
+++ b/
unpack-trees.c
@@
-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);
git clone https://git.99rst.org/PROJECT