Fix bare repo bug

This commit is contained in:
Unknwon committed 2014-08-05 19:40:01 -04:00
1 parent 6f6fda1481
commit fa0a389dc4
5 files changed
+15 -14

No files matched your search

-2
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)