deduplicate index progress bar setup

This commit is contained in:
Michael Eischer
2023-10-01 19:53:26 +02:00
parent 75f6bd89ed
commit b0da0f152f
16 changed files with 25 additions and 17 deletions
+1 -1
View File
@@ -469,7 +469,7 @@ func runDebugExamine(ctx context.Context, gopts GlobalOptions, args []string) er
}
}
bar := newProgressMax(!gopts.Quiet && !gopts.JSON, 0, "index files loaded")
bar := newIndexProgress(gopts.Quiet, gopts.JSON)
err = repo.LoadIndex(ctx, bar)
if err != nil {
return err