diff options
author | slene <vslene@gmail.com> | 2014-04-13 09:35:36 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-04-13 09:35:36 +0800 |
commit | 52b4ab2aa589cf892b24e95872cbac7b6e78ed3a (patch) | |
tree | efa6799dd4b78d6e70a28ac9feaa4351836c201a /routers/repo/release.go | |
parent | 9ffa8a40836a5e3341267affbaef08acf4765a74 (diff) | |
download | gitea-52b4ab2aa589cf892b24e95872cbac7b6e78ed3a.tar.gz gitea-52b4ab2aa589cf892b24e95872cbac7b6e78ed3a.zip |
update with new git
Diffstat (limited to 'routers/repo/release.go')
-rw-r--r-- | routers/repo/release.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/repo/release.go b/routers/repo/release.go index 279fc169f8..3d549bf773 100644 --- a/routers/repo/release.go +++ b/routers/repo/release.go @@ -5,7 +5,6 @@ package repo import ( - "github.com/gogits/gogs/models" "github.com/gogits/gogs/modules/middleware" ) @@ -13,7 +12,7 @@ func Releases(ctx *middleware.Context) { ctx.Data["Title"] = "Releases" ctx.Data["IsRepoToolbarReleases"] = true ctx.Data["IsRepoReleaseNew"] = false - tags, err := models.GetTags(ctx.Repo.Owner.Name, ctx.Repo.Repository.Name) + tags, err := ctx.Repo.GitRepo.GetTags() if err != nil { ctx.Handle(404, "repo.Releases(GetTags)", err) return |