Skip to content

Commit e350d74

Browse files
committed
fix gogs#2085
1 parent 149e540 commit e350d74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/middleware/repo.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import (
1919

2020
func ApiRepoAssignment() macaron.Handler {
2121
return func(ctx *Context) {
22+
ctx.Repo = &RepoContext{}
23+
2224
userName := ctx.Params(":username")
2325
repoName := ctx.Params(":reponame")
2426

0 commit comments

Comments
 (0)