From aa99e805c8752e91f62ae6992080286c84b9b3df Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 10 Mar 2017 15:27:55 -0500 Subject: [PATCH] repo/release: 404 when edit draft (4262) --- cmd/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/web.go b/cmd/web.go index b6aa2dd7e..57f3bcd65 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -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.