aboutsummaryrefslogtreecommitdiff
path: root/pkg/service
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-15 18:15:22 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-06-15 18:21:55 +0200
commitd2c4023832e26d3fe3f77c9fa8581588ea812cc2 (patch)
tree6e9b5665d80128597fb078b1f945b2ce349389a8 /pkg/service
parent519af559f94aab1bd1446cc01144cbf2640fcc6a (diff)
downloadcerrado-d2c4023832e26d3fe3f77c9fa8581588ea812cc2.tar.gz
cerrado-d2c4023832e26d3fe3f77c9fa8581588ea812cc2.tar.bz2
cerrado-d2c4023832e26d3fe3f77c9fa8581588ea812cc2.zip
fix: Add support lightweight tags
For now all tags are read as reference. That cause tags to not carry its message body by default but it will be added in the future. For now simple tags will do.
Diffstat (limited to 'pkg/service')
-rw-r--r--pkg/service/git.go2
1 files changed, 1 insertions, 1 deletions
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