diff options
author | Unknwon <u@gogs.io> | 2017-03-10 15:27:55 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-10 15:27:55 -0500 |
commit | aa99e805c8752e91f62ae6992080286c84b9b3df (patch) | |
tree | 38b377ecff66b26cd83a81df3f621a6a40a24634 | |
parent | 0049c80cd9e711fa6bfecc96c3e774568ec3597a (diff) |
repo/release: 404 when edit draft (4262)
-rw-r--r-- | cmd/web.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -529,7 +529,7 @@ func runWeb(ctx *cli.Context) error { m.Post("/delete", repo.DeleteRelease) m.Get("/edit/*", repo.EditRelease) m.Post("/edit/*", bindIgnErr(form.EditRelease{}), repo.EditReleasePost) - }, reqRepoWriter, context.RepoRef()) + }, reqRepoWriter) // FIXME: Should use ctx.Repo.PullRequest to unify template, currently we have inconsistent URL // for PR in same repository. After select branch on the page, the URL contains redundant head user name. |