routers/repo/pull: fix 404 on PR compare (#4074)

Due to recent code refactor, ctx.PullRequest is not initialized for
route repo.CompareAndPullRequest, which leads the UI thinks the
compare is not happening inside the same repository.

The current fix is to allow compare URL to include redundant head
user name so everything works fine again, but code logic isn't
as clean as before.

Made comments about possible future fix.
This commit is contained in:
Unknwon
2017-02-08 18:43:46 -05:00
parent ede58ade4c
commit afab38b0d7
4 changed files with 25 additions and 14 deletions

View File

@@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
const APP_VER = "0.9.134.0208"
const APP_VER = "0.9.135.0208"
func init() {
setting.AppVer = APP_VER