summaryrefslogtreecommitdiff
path: root/builtin/reset.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-06-13 12:19:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-13 18:49:39 (GMT)
commite6c286e8b2d0748cfaa670f6738db0c232427cd3 (patch)
tree061fd404ed97633794ccf63e8d41f27cfb9d7b71 /builtin/reset.c
parentd0cfc3e866a77eed98ab2caf41a39a87837950e6 (diff)
downloadgit-e6c286e8b2d0748cfaa670f6738db0c232427cd3.zip
git-e6c286e8b2d0748cfaa670f6738db0c232427cd3.tar.gz
git-e6c286e8b2d0748cfaa670f6738db0c232427cd3.tar.bz2
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/reset.c')
-rw-r--r--builtin/reset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/reset.c b/builtin/reset.c
index 0c56d28..234b2eb 100644
--- a/builtin/reset.c
+++ b/builtin/reset.c
@@ -84,7 +84,7 @@ static int reset_index(const unsigned char *sha1, int reset_type, int quiet)
if (reset_type == MIXED || reset_type == HARD) {
tree = parse_tree_indirect(sha1);
- prime_cache_tree(&active_cache_tree, tree);
+ prime_cache_tree(&the_index, tree);
}
return 0;