status: show progress bar if refreshing the index takes too long
[gitweb.git] / builtin / am.c
index 5e866d17c7c7b46ccf671916c853be228bf38ad6..22a93cfef34c0807f0e717031e0e02b6f11bebf0 100644 (file)
@@ -2324,7 +2324,7 @@ int cmd_am(int argc, const char **argv, const char *prefix)
        /* Ensure a valid committer ident can be constructed */
        git_committer_info(IDENT_STRICT);
 
-       if (read_index_preload(&the_index, NULL) < 0)
+       if (read_index_preload(&the_index, NULL, 0) < 0)
                die(_("failed to read the index"));
 
        if (in_progress) {