diff options
author | u5surf <u5.horie@gmail.com> | 2018-10-02 20:04:47 +0900 |
---|---|---|
committer | u5surf <u5.horie@gmail.com> | 2018-10-02 20:19:26 +0900 |
commit | 41af4294c1347c2f35e255d4ac01ecd25b9d5d55 (patch) | |
tree | 8b2d4fad2e0cd4709b7308804277a72d537fd971 /prune.go | |
parent | 1fdd36c814746efdf199392135696cfde7287b44 (diff) | |
download | go-git-41af4294c1347c2f35e255d4ac01ecd25b9d5d55.tar.gz |
use time.IsZero in Prune
Signed-off-by: u5surf <u5.horie@gmail.com>
Diffstat (limited to 'prune.go')
-rw-r--r-- | prune.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |