bad logic on 'first' tag
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
49724b16e8
commit
35e03959ab
|
@ -203,6 +203,12 @@ func (rtags *repoTags) PruneSmart() {
|
|||
|
||||
isVersion := regexp.MustCompile("v[0-9]+.[0-9]+.[0-9]+").MatchString
|
||||
if isVersion(t.tag.String()) {
|
||||
if first {
|
||||
log.Info("keep first tag", i, t.tag.String())
|
||||
t.Hide()
|
||||
first = false
|
||||
continue
|
||||
}
|
||||
log.Info("valid tag", i, t.tag.String())
|
||||
t.Hide()
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue