diff --git a/gvfs-helper.c b/gvfs-helper.c index 4ae01d59db76c9..35e7ec5634ee1d 100644 --- a/gvfs-helper.c +++ b/gvfs-helper.c @@ -1855,13 +1855,8 @@ static void my_run_index_pack(struct gh__request_params *params, strvec_push(&ip.args, "git"); strvec_push(&ip.args, "index-pack"); - if (gh__cmd_opts.show_progress) { - strvec_push(&ip.args, "-v"); - ip.err = 0; - } else { - ip.err = -1; - ip.no_stderr = 1; - } + ip.err = -1; + ip.no_stderr = 1; /* Skip generating the rev index, we don't need it. */ strvec_push(&ip.args, "--no-rev-index"); @@ -2350,12 +2345,17 @@ static void install_prefetch(struct gh__request_params *params, trace2_data_intmax(TR2_CAT, NULL, "prefetch/packfile_count", np); + if (gh__cmd_opts.show_progress) + params->progress = start_progress("Installing prefetch packfiles", np); + for (k = 0; k < np; k++) { extract_packfile_from_multipack(params, status, fd, k); + display_progress(params->progress, k + 1); if (status->ec != GH__ERROR_CODE__OK) break; nr_installed++; } + stop_progress(¶ms->progress); if (nr_installed) delete_stale_keep_files(params, status);