mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Add build tag enable prompt
This commit is contained in:
@@ -174,6 +174,12 @@ func newLogService() {
|
||||
|
||||
func newCacheService() {
|
||||
CacheAdapter = Cfg.MustValue("cache", "ADAPTER", "memory")
|
||||
if cache.EnableRedis {
|
||||
log.Info("Redis Enabled")
|
||||
}
|
||||
if cache.EnableMemcache {
|
||||
log.Info("Memcache Enabled")
|
||||
}
|
||||
|
||||
switch CacheAdapter {
|
||||
case "memory":
|
||||
|
@@ -201,6 +201,7 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
|
||||
|
||||
// repo is bare and display enable
|
||||
if displayBare && ctx.Repo.Repository.IsBare {
|
||||
log.Debug("Bare repository: %s", ctx.Repo.RepoLink)
|
||||
ctx.HTML(200, "repo/single_bare")
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user