aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/git/git.go8
-rw-r--r--pkg/handler/git/handler.go2
-rw-r--r--pkg/service/git.go2
3 files changed, 6 insertions, 6 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
})
diff --git a/pkg/handler/git/handler.go b/pkg/handler/git/handler.go
index b4c7c54..4809362 100644
--- a/pkg/handler/git/handler.go
+++ b/pkg/handler/git/handler.go
@@ -33,7 +33,7 @@ type (
GetHead(name string) (*plumbing.Reference, error)
GetTree(name, ref, path string) (*object.Tree, error)
GetFileContent(name, ref, path string) (string, error)
- ListTags(name string) ([]*object.Tag, error)
+ ListTags(name string) ([]*plumbing.Reference, error)
ListBranches(name string) ([]*plumbing.Reference, error)
}
diff --git a/pkg/service/git.go b/pkg/service/git.go
index 0907924..071e10d 100644
--- a/pkg/service/git.go
+++ b/pkg/service/git.go
@@ -128,7 +128,7 @@ func (g *GitService) GetFileContent(name, ref, path string) (string, error) {
return repo.FileContent(path)
}
-func (g *GitService) ListTags(name string) ([]*object.Tag, error) {
+func (g *GitService) ListTags(name string) ([]*plumbing.Reference, error) {
r := g.configRepo.GetByName(name)
if r == nil {
return nil, RepositoryNotFoundErr