aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/web.go2
-rw-r--r--gogs.go2
-rw-r--r--templates/.VERSION2
3 files changed, 3 insertions, 3 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 9ed63289..792d8b67 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -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)
diff --git a/gogs.go b/gogs.go
index 57a9ac87..5666e73e 100644
--- a/gogs.go
+++ b/gogs.go
@@ -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