fix display bare repo

This commit is contained in:
slene 2014-03-30 13:30:17 +08:00
parent e2f63d81d3
commit d6c9e3413a
5 changed files with 72 additions and 53 deletions

View file

@ -78,6 +78,7 @@ func Single(ctx *middleware.Context, params martini.Params) {
ctx.Handle(404, "repo.Single(GetBranches)", err)
return
}
ctx.Data["Branches"] = brs
isViewBranch := ctx.Repo.IsBranch