We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fdd36c commit 41af429Copy full SHA for 41af429
prune.go
@@ -49,7 +49,7 @@ func (r *Repository) Prune(opt PruneOptions) error {
49
}
50
// Otherwise it is a candidate for pruning.
51
// Check out for too new objects next.
52
- if opt.OnlyObjectsOlderThan != (time.Time{}) {
+ if !opt.OnlyObjectsOlderThan.IsZero() {
53
// Errors here are non-fatal. The object may be e.g. packed.
54
// Or concurrently deleted. Skip such objects.
55
t, err := los.LooseObjectTime(hash)
0 commit comments