diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-19 23:37:04 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-19 23:37:04 -0400 |
commit | 5fdfc2e223a6b3ba381f2261e373120ac02b7ef5 (patch) | |
tree | 4614d2dca9e8ca33591269c76ec41ae826a39d5b /modules/middleware | |
parent | 8bed017557c43701d92ca3e571761cd310ed8c83 (diff) | |
download | gitea-5fdfc2e223a6b3ba381f2261e373120ac02b7ef5.tar.gz gitea-5fdfc2e223a6b3ba381f2261e373120ac02b7ef5.zip |
Add debug log
Diffstat (limited to 'modules/middleware')
-rw-r--r-- | modules/middleware/repo.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go index 9a23d67592..34144fe3d8 100644 --- a/modules/middleware/repo.go +++ b/modules/middleware/repo.go @@ -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) |