repository: set progress bar maximum in Repack

This commit is contained in:
Michael Eischer committed 2025-11-16 12:51:46 +01:00
1 parent b2afccbd96
commit a0925fa922
3 files changed
+2 -4

No files matched your search

-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)
}