mirror of
https://github.com/gogs/gogs.git
synced 2025-12-21 15:50:00 +01:00
diff: fix can't show compare page for fork repository (#4110)
This commit is contained in:
@@ -608,7 +608,7 @@ func runWeb(ctx *cli.Context) error {
|
|||||||
}, context.RepoRef())
|
}, context.RepoRef())
|
||||||
m.Get("/commit/:sha([a-f0-9]{7,40})\\.:ext(patch|diff)", repo.RawDiff)
|
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)
|
}, ignSignIn, context.RepoAssignment(), repo.MustBeNotBare)
|
||||||
m.Group("/:username/:reponame", func() {
|
m.Group("/:username/:reponame", func() {
|
||||||
m.Get("/stars", repo.Stars)
|
m.Get("/stars", repo.Stars)
|
||||||
|
|||||||
2
gogs.go
2
gogs.go
@@ -16,7 +16,7 @@ import (
|
|||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/gogits/gogs/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const APP_VER = "0.9.144.0212"
|
const APP_VER = "0.9.145.0212"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
setting.AppVer = APP_VER
|
setting.AppVer = APP_VER
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
0.9.144.0212
|
0.9.145.0212
|
||||||
Reference in New Issue
Block a user