aboutsummaryrefslogtreecommitdiff
path: root/builtin/read-tree.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-06-13 19:19:33 +0700
committerJunio C Hamano <gitster@pobox.com>2014-06-13 11:49:39 -0700
commite6c286e8b2d0748cfaa670f6738db0c232427cd3 (patch)
tree061fd404ed97633794ccf63e8d41f27cfb9d7b71 /builtin/read-tree.c
parentd0cfc3e866a77eed98ab2caf41a39a87837950e6 (diff)
downloadgit-e6c286e8b2d0748cfaa670f6738db0c232427cd3.tar.gz
git-e6c286e8b2d0748cfaa670f6738db0c232427cd3.tar.xz
cache-tree: mark istate->cache_changed on prime_cache_tree()
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 'builtin/read-tree.c')
-rw-r--r--builtin/read-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/read-tree.c b/builtin/read-tree.c
index f26d90f54..3204c62ea 100644
--- a/builtin/read-tree.c
+++ b/builtin/read-tree.c
@@ -231,7 +231,7 @@ int cmd_read_tree(int argc, const char **argv, const char *unused_prefix)
* what came from the tree.
*/
if (nr_trees == 1 && !opts.prefix)
- prime_cache_tree(&active_cache_tree, trees[0]);
+ prime_cache_tree(&the_index, trees[0]);
if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK))
die("unable to write new index file");