all repos — legit @ f139acc54c54c630ff06ae663547b60b5902d475

legit - simple git web interface in go (fork)

Merge branch 'zombie_branches' into nilix
Iris Lightshard nilix@nilfm.cc
commit

f139acc54c54c630ff06ae663547b60b5902d475

parent

3f1059dffb1af8a98b434bd4470afe59f3da482b

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M git/git.gogit/git.go

@@ -110,6 +110,10 @@

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) {