cache-tree: mark istate->cache_changed on cache tree update
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
a5400efe29
commit
d0cfc3e866
@ -371,9 +371,7 @@ static int is_index_unchanged(void)
|
||||
active_cache_tree = cache_tree();
|
||||
|
||||
if (!cache_tree_fully_valid(active_cache_tree))
|
||||
if (cache_tree_update(active_cache_tree,
|
||||
(const struct cache_entry * const *)active_cache,
|
||||
active_nr, 0))
|
||||
if (cache_tree_update(&the_index, 0))
|
||||
return error(_("Unable to update cache tree\n"));
|
||||
|
||||
return !hashcmp(active_cache_tree->sha1, head_commit->tree->object.sha1);
|
||||
|
||||
Reference in New Issue
Block a user