summaryrefslogtreecommitdiffstats
path: root/routers/repo/release.go
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-05-10 11:14:24 +0800
committerslene <vslene@gmail.com>2014-05-10 11:14:24 +0800
commit7d84cc96e8da9f7389f855be4f86864039843e6c (patch)
tree01e490472f6c9448b930727dc2c83c78c058f5f2 /routers/repo/release.go
parent2eabeba6b76d906664defe4392a7ca2640128712 (diff)
downloadgitea-7d84cc96e8da9f7389f855be4f86864039843e6c.tar.gz
gitea-7d84cc96e8da9f7389f855be4f86864039843e6c.zip
update with git api
Diffstat (limited to 'routers/repo/release.go')
-rw-r--r--routers/repo/release.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/repo/release.go b/routers/repo/release.go
index b386bac804..14a14656d4 100644
--- a/routers/repo/release.go
+++ b/routers/repo/release.go
@@ -140,8 +140,7 @@ func ReleasesNewPost(ctx *middleware.Context, form auth.NewReleaseForm) {
IsPrerelease: form.Prerelease,
}
- if err = models.CreateRelease(models.RepoPath(ctx.User.Name, ctx.Repo.Repository.Name),
- rel, ctx.Repo.GitRepo); err != nil {
+ if err = models.CreateRelease(ctx.Repo.GitRepo, rel); err != nil {
if err == models.ErrReleaseAlreadyExist {
ctx.RenderWithErr("Release with this tag name has already existed", "release/new", &form)
} else {