Merge branch 'zombie_branches' into nilix
This commit is contained in:
commit
f139acc54c
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue