prune: allow --repack-smaller-than independently of --repack-small

This commit is contained in:
Michael Eischer
2025-03-22 15:08:36 +01:00
parent 3f42c0ad96
commit 3e58b15ace
3 changed files with 4 additions and 11 deletions

View File

@@ -143,11 +143,6 @@ func verifyPruneOptions(opts *PruneOptions) error {
}
}
if !opts.RepackSmall && opts.SmallPackSize != "" {
return errors.Fatal("option --repack-small and --repack-smaller-than: must be specified together")
}
opts.SmallPackBytes = uint64(0)
if opts.SmallPackSize != "" {
size, err := ui.ParseBytes(opts.SmallPackSize)
if err != nil {