Merge branch 'zombie_branches' into nilix

This commit is contained in:
Iris Lightshard 2023-03-09 12:33:46 -07:00
commit f139acc54c

View file

@ -110,6 +110,10 @@ func (g *GitRepo) Tags() ([]*object.Tag, error) {
tags := []*object.Tag{}
_ = ti.ForEach(func(t *object.Tag) error {
refName := plumbing.NewTagReferenceName(t.Name)
if _, unreachable := g.r.Reference(refName, true); unreachable != nil {
return nil
}
for i, existing := range tags {
if existing.Name == t.Name {
if t.Tagger.When.After(existing.Tagger.When) {