Fix bare repo bug

This commit is contained in:
Unknwon 2014-08-05 19:40:01 -04:00
parent 6f6fda1481
commit fa0a389dc4
5 changed files with 15 additions and 14 deletions

View file

@ -245,8 +245,6 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler {
ctx.Data["CommitsCount"] = ctx.Repo.CommitsCount
}
log.Debug("displayBare: %v; IsBare: %v", displayBare, ctx.Repo.Repository.IsBare)
// repo is bare and display enable
if displayBare && ctx.Repo.Repository.IsBare {
log.Debug("Bare repository: %s", ctx.Repo.RepoLink)