repository: set progress bar maximum in Repack

This commit is contained in:
Michael Eischer
2025-10-12 18:30:24 +02:00
parent b2afccbd96
commit a0925fa922
3 changed files with 2 additions and 4 deletions
-2
View File
@@ -243,9 +243,7 @@ func copyTree(ctx context.Context, srcRepo restic.Repository, dstRepo restic.Rep
}
bar := printer.NewCounter("packs copied")
bar.SetMax(uint64(len(packList)))
err = repository.Repack(ctx, srcRepo, dstRepo, packList, copyBlobs, bar, printer.P)
bar.Done()
if err != nil {
return errors.Fatalf("%s", err)
}