summaryrefslogtreecommitdiff
path: root/unpack-trees.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-06-13 19:19:34 +0700
committerJunio C Hamano <gitster@pobox.com>2014-06-13 11:49:39 -0700
commitd4a2024aef90fa5dd2b0e5027f9340719ff20748 (patch)
tree6d69b97c8e8df1d5dc98c3ba138d3d58306f1065 /unpack-trees.c
parente6c286e8b2d0748cfaa670f6738db0c232427cd3 (diff)
downloadgit-d4a2024aef90fa5dd2b0e5027f9340719ff20748.tar.gz
entry.c: update cache_changed if refresh_cache is set in checkout_entry()
Other fill_stat_cache_info() is on new entries, which should set CE_ENTRY_ADDED in cache_changed, so we're safe. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.c')
-rw-r--r--unpack-trees.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/unpack-trees.c b/unpack-trees.c
index 3beff8a8bf..26f65c72fd 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -1029,6 +1029,7 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
state.force = 1;
state.quiet = 1;
state.refresh_cache = 1;
+ state.istate = &o->result;
memset(&el, 0, sizeof(el));
if (!core_apply_sparse_checkout || !o->update)