Unknwon 9 лет назад
Родитель
Сommit
e350d74c8a
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      modules/middleware/repo.go

+ 2 - 0
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")