diff options
author | Unknwon <u@gogs.io> | 2015-12-02 18:58:13 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-02 18:58:13 -0500 |
commit | e350d74c8af139d7a9af0854da6452139403297f (patch) | |
tree | 032b6a2646a2fe36c5664a301e41c7af8dda22a3 /modules | |
parent | 149e54032283cab9259b41ac34d0a66b1e410c3a (diff) | |
download | gitea-e350d74c8af139d7a9af0854da6452139403297f.tar.gz gitea-e350d74c8af139d7a9af0854da6452139403297f.zip |
fix #2085
Diffstat (limited to 'modules')
-rw-r--r-- | modules/middleware/repo.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go index 8bda9ebf7b..46df9f04e5 100644 --- a/modules/middleware/repo.go +++ b/modules/middleware/repo.go @@ -19,6 +19,8 @@ import ( func ApiRepoAssignment() macaron.Handler { return func(ctx *Context) { + ctx.Repo = &RepoContext{} + userName := ctx.Params(":username") repoName := ctx.Params(":reponame") |