aboutsummaryrefslogtreecommitdiffstats
path: root/modules/middleware/context.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-04 17:20:23 -0500
committerUnknwon <u@gogs.io>2015-12-04 17:20:23 -0500
commit942fd6be536ced006e028bb191711773b752fe22 (patch)
tree6766a25890d8c937ae6902ab926f5f6882f71606 /modules/middleware/context.go
parent56dd430a10bf5281caf648344e4660fbdc5d4dee (diff)
downloadgitea-942fd6be536ced006e028bb191711773b752fe22.tar.gz
gitea-942fd6be536ced006e028bb191711773b752fe22.zip
fix panic for #2045
Diffstat (limited to 'modules/middleware/context.go')
-rw-r--r--modules/middleware/context.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index 4f7c438382..7528e2a7a4 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -208,6 +208,7 @@ func Contexter() macaron.Handler {
csrf: x,
Flash: f,
Session: sess,
+ Repo: &RepoContext{},
}
// Compute current URL for real-time change language.
ctx.Data["Link"] = setting.AppSubUrl + strings.TrimSuffix(ctx.Req.URL.Path, "/")