summaryrefslogtreecommitdiffstats
path: root/modules/middleware/repo.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-10 23:49:53 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-10 23:49:53 -0400
commitf8e370f8ca60acdc14d0ca667d971662c7f7e2d5 (patch)
tree140fb85c3cf1a72d1dcc6cdb1998e84a1025a4dc /modules/middleware/repo.go
parented546912e5e4aa7c33230365707065a646f5e137 (diff)
downloadgitea-f8e370f8ca60acdc14d0ca667d971662c7f7e2d5.tar.gz
gitea-f8e370f8ca60acdc14d0ca667d971662c7f7e2d5.zip
Bug fix
Diffstat (limited to 'modules/middleware/repo.go')
-rw-r--r--modules/middleware/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index ae9f04b113..df575f30c0 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -160,7 +160,7 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
}
ctx.Data["BranchName"] = ctx.Repo.BranchName
- ctx.Data["Branches"], _ = models.GetBranches(ctx.User.Name, ctx.Repo.Repository.Name)
+ ctx.Data["Branches"], _ = models.GetBranches(user.Name, repoName)
ctx.Data["CommitId"] = ctx.Repo.CommitId
ctx.Data["IsRepositoryWatching"] = ctx.Repo.IsWatching
}