Skip to content

Commit

Permalink
gvfs-helper: stop showing index-pack progress
Browse files Browse the repository at this point in the history
If we are showing progress, then we should do so only for how many
prefetch packs are being downloaded. Stop sending the '-v' option to
'git index-pack' which creates too much noise.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
  • Loading branch information
derrickstolee authored and dscho committed Aug 8, 2023
1 parent 63984f1 commit 4268011
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions gvfs-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4268011

Please sign in to comment.