diff options
| author | Jeff Carr <[email protected]> | 2024-02-09 04:55:08 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-09 04:55:08 -0600 |
| commit | 35e03959abdf1723e2f589cc641051166ac0ddee (patch) | |
| tree | 9a2c16bff113cc4f8c955691c5d59ce83c3bf57b /tagWindow.go | |
| parent | 49724b16e81d114c7024c4c446cfcb76013c57dc (diff) | |
bad logic on 'first' tagv0.20.2
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'tagWindow.go')
| -rw-r--r-- | tagWindow.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tagWindow.go b/tagWindow.go index fcf1d56..5e51782 100644 --- a/tagWindow.go +++ b/tagWindow.go @@ -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 |
