diff options
author | Unknwon <u@gogs.io> | 2017-02-12 18:43:26 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-12 18:43:26 -0500 |
commit | 2d38b754001628718c16deef7b3a737a1ac4ab67 (patch) | |
tree | 0ae3892f8bd2fdf4142fed50d3d41de90adfcd03 | |
parent | f59a607361ff3c21a49f3e0735c17dcceacbd3df (diff) |
diff: fix can't show compare page for fork repository (#4110)
-rw-r--r-- | cmd/web.go | 2 | ||||
-rw-r--r-- | gogs.go | 2 | ||||
-rw-r--r-- | templates/.VERSION | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -608,7 +608,7 @@ func runWeb(ctx *cli.Context) error { }, context.RepoRef()) m.Get("/commit/:sha([a-f0-9]{7,40})\\.:ext(patch|diff)", repo.RawDiff) - m.Get("/compare/:before([a-z0-9]{40})\\.\\.\\.:after([a-z0-9]{40})", repo.CompareDiff) + m.Get("/compare/:before([a-z0-9]{40})\\.\\.\\.:after([a-z0-9]{40})", context.RepoRef(), repo.CompareDiff) }, ignSignIn, context.RepoAssignment(), repo.MustBeNotBare) m.Group("/:username/:reponame", func() { m.Get("/stars", repo.Stars) @@ -16,7 +16,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.9.144.0212" +const APP_VER = "0.9.145.0212" func init() { setting.AppVer = APP_VER diff --git a/templates/.VERSION b/templates/.VERSION index cc495a4a..d12102fd 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.9.144.0212
\ No newline at end of file +0.9.145.0212
\ No newline at end of file |