cache-tree: mark istate->cache_changed on prime_cache_tree()
[gitweb.git] / sequencer.c
index 5ebc461a9b4f131001b186736d94cd52654ce5ce..4b709dba5f2e427afa87bc1b2e1f16e32f946c87 100644 (file)
@@ -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);