diff options
author | Unknwon <u@gogs.io> | 2015-12-04 17:20:23 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-04 17:20:23 -0500 |
commit | 942fd6be536ced006e028bb191711773b752fe22 (patch) | |
tree | 6766a25890d8c937ae6902ab926f5f6882f71606 /routers/api | |
parent | 56dd430a10bf5281caf648344e4660fbdc5d4dee (diff) | |
download | gitea-942fd6be536ced006e028bb191711773b752fe22.tar.gz gitea-942fd6be536ced006e028bb191711773b752fe22.zip |
fix panic for #2045
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/api.go | 2 |
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") |