diff options
Diffstat (limited to 'pkg/git/git.go')
-rw-r--r-- | pkg/git/git.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/git/git.go b/pkg/git/git.go index ad5d3bc..428bfb1 100644 --- a/pkg/git/git.go +++ b/pkg/git/git.go @@ -107,14 +107,14 @@ func (g *GitRepository) Head() (*plumbing.Reference, error) { return g.repository.Head() } -func (g *GitRepository) Tags() ([]*object.Tag, error) { - ti, err := g.repository.TagObjects() +func (g *GitRepository) Tags() ([]*plumbing.Reference, error) { + ti, err := g.repository.Tags() if err != nil { return nil, err } - tags := []*object.Tag{} - err = ti.ForEach(func(t *object.Tag) error { + tags := []*plumbing.Reference{} + err = ti.ForEach(func(t *plumbing.Reference) error { tags = append(tags, t) return nil }) |