Unknwon 9 éve
szülő
commit
e350d74c8a
1 módosított fájl, 2 hozzáadás és 0 törlés
  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")