]> source.dussan.org Git - gitea.git/commitdiff
Add build tag enable prompt
authorUnknown <joe2010xtmf@163.com>
Sun, 20 Apr 2014 02:13:22 +0000 (22:13 -0400)
committerUnknown <joe2010xtmf@163.com>
Sun, 20 Apr 2014 02:13:22 +0000 (22:13 -0400)
conf/app.ini
modules/base/conf.go
modules/middleware/repo.go
routers/install.go
templates/repo/single_list.tmpl

index eb3d635f380b6182e34d0f8ef9b8f52508bd3855..ca0bfa84d921c189f093708797055cbcad85e2b1 100644 (file)
@@ -22,7 +22,7 @@ CERT_FILE = cert.pem
 KEY_FILE = key.pem
 
 [database]
-; Either "mysql", "postgres" or "sqlite3"(binary release only), it's your choice
+; Either "mysql", "postgres" or "sqlite3", it's your choice
 DB_TYPE = mysql
 HOST = 127.0.0.1:3306
 NAME = gogs
index 9dccc48f9d3a0a4d2cddb8a1331f3c339e5953f8..720b86108408cfcbd899b44d5e924b2751294b04 100644 (file)
@@ -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":
index 07395df96ad4fdb3a9e9a4b47d4e4b3026a314c9..9a23d675921e6a38387b64f86ab032c9c07a2deb 100644 (file)
@@ -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
                }
index 81b164038c4c209623f85cd91f7c9ac47b7b123d..12182ad300183df04e169016177c5dfb5dff6411 100644 (file)
@@ -49,6 +49,7 @@ func GlobalInit() {
        models.LoadModelsConfig()
        models.LoadRepoConfig()
        models.NewRepoContext()
+       NewServices()
 
        if base.InstallLock {
                if err := models.NewEngine(); err != nil {
@@ -56,9 +57,11 @@ func GlobalInit() {
                }
 
                models.HasEngine = true
+               if models.EnableSQLite3 {
+                       log.Info("SQLite3 Enabled")
+               }
                cron.NewCronContext()
        }
-       NewServices()
        checkRunMode()
 }
 
index b12687bd7dc3b776f1cba4efe662025a766cba19..7b6c6e5e9c1b95ed466f3dda01f7480dcf95ffe0 100644 (file)
@@ -36,7 +36,7 @@
                         </span>
                     </td>
                     <td class="text">
-                        <span class="wrap"><a href="/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.Id}}">{{$commit.Message}}</a></span>
+                        <span class="wrap"><a rel="nofollow" href="/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.Id}}">{{$commit.Message}}</a></span>
                     </td>
                     <td class="date">
                         <span class="wrap">{{TimeSince $commit.Committer.When}}</span>