hide index loading progress for JSON output

This commit is contained in:
Michael Eischer
2023-10-01 19:53:26 +02:00
parent 3fd0ad7448
commit 75f6bd89ed
15 changed files with 17 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, 0, "index files loaded")
bar := newProgressMax(!gopts.Quiet && !gopts.JSON, 0, "index files loaded")
err = repo.LoadIndex(ctx, bar)
if err != nil {
return err