status: show progress bar if refreshing the index takes too long
[gitweb.git] / sequencer.c
index dc2c58d464c14be033f4bcba2ab4332886ead327..e0cd17df701de6d625b9e89975361dc42cfbccbe 100644 (file)
@@ -1909,7 +1909,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) {
+       if (read_index_preload(&the_index, NULL, 0) < 0) {
                rollback_lock_file(&index_lock);
                return error(_("git %s: failed to read the index"),
                        _(action_name(opts)));