mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 07:43:18 -05:00
Add debug log
This commit is contained in:
parent
8bed017557
commit
5fdfc2e223
1 changed files with 3 additions and 0 deletions
|
@ -197,8 +197,11 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
|
||||||
|
|
||||||
ctx.Data["IsBranch"] = ctx.Repo.IsBranch
|
ctx.Data["IsBranch"] = ctx.Repo.IsBranch
|
||||||
ctx.Data["IsCommit"] = ctx.Repo.IsCommit
|
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
|
// repo is bare and display enable
|
||||||
if displayBare && ctx.Repo.Repository.IsBare {
|
if displayBare && ctx.Repo.Repository.IsBare {
|
||||||
log.Debug("Bare repository: %s", ctx.Repo.RepoLink)
|
log.Debug("Bare repository: %s", ctx.Repo.RepoLink)
|
||||||
|
|
Loading…
Reference in a new issue