reset.c: move update_index_refresh() call out of read_from_tree()