refresh_index: remove unnecessary calls to preload_index()
[gitweb.git] / sequencer.c
index 0c164d5f98f152156ef21a79159f6348fecb0273..b46dd0fb636724d333f3dacdf43a93fa1c266661 100644 (file)
@@ -1913,7 +1913,7 @@ static int read_and_refresh_cache(struct replay_opts *opts)
 {
        struct lock_file index_lock = LOCK_INIT;
        int index_fd = hold_locked_index(&index_lock, 0);
-       if (read_index_preload(&the_index, NULL, 0) < 0) {
+       if (read_index(&the_index) < 0) {
                rollback_lock_file(&index_lock);
                return error(_("git %s: failed to read the index"),
                        _(action_name(opts)));