mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 21:44:23 +01:00
single commit and bumping go-git version
This commit is contained in:
1 parent
3b45fb91e3
commit
15dedda59a
48 files changed
+1453
-390
No files matched your search
+1
-1
@@ -49,7 +49,7 @@ func (r *Repository) Prune(opt PruneOptions) error {
|
||||
}
|
||||
// Otherwise it is a candidate for pruning.
|
||||
// Check out for too new objects next.
|
||||
if opt.OnlyObjectsOlderThan != (time.Time{}) {
|
||||
if !opt.OnlyObjectsOlderThan.IsZero() {
|
||||
// Errors here are non-fatal. The object may be e.g. packed.
|
||||
// Or concurrently deleted. Skip such objects.
|
||||
t, err := los.LooseObjectTime(hash)
|
||||
|
||||
Reference in new issue
Block a user