]> source.dussan.org Git - gitea.git/commitdiff
Add debug log
authorUnknown <joe2010xtmf@163.com>
Sun, 20 Apr 2014 03:37:04 +0000 (23:37 -0400)
committerUnknown <joe2010xtmf@163.com>
Sun, 20 Apr 2014 03:37:04 +0000 (23:37 -0400)
modules/middleware/repo.go

index 9a23d675921e6a38387b64f86ab032c9c07a2deb..34144fe3d8bbbdd671865c948226c4dddefa10c6 100644 (file)
@@ -197,8 +197,11 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
 
                        ctx.Data["IsBranch"] = ctx.Repo.IsBranch
                        ctx.Data["IsCommit"] = ctx.Repo.IsCommit
+                       log.Debug("Repo.Commit: %v", ctx.Repo.Commit)
                }
 
+               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)