aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api
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 /routers/api
parent56dd430a10bf5281caf648344e4660fbdc5d4dee (diff)
downloadgitea-942fd6be536ced006e028bb191711773b752fe22.tar.gz
gitea-942fd6be536ced006e028bb191711773b752fe22.zip
fix panic for #2045
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/api.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index d2ebd1b11b..01577bba7d 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -22,8 +22,6 @@ import (
func RepoAssignment() macaron.Handler {
return func(ctx *middleware.Context) {
- ctx.Repo = &middleware.RepoContext{}
-
userName := ctx.Params(":username")
repoName := ctx.Params(":reponame")