aboutsummaryrefslogtreecommitdiff
path: root/entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'entry.c')
-rw-r--r--entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/entry.c b/entry.c
index d7824c4f6..874516e17 100644
--- a/entry.c
+++ b/entry.c
@@ -117,7 +117,7 @@ static int write_entry(struct cache_entry *ce, const char *path, struct checkout
return error("git-checkout-cache: unknown file mode for %s", path);
}
- if (state->update) {
+ if (state->refresh_cache) {
struct stat st;
lstat(ce->name, &st);
fill_stat_cache_info(ce, &st);