diff options
author | Unknwon <u@gogs.io> | 2018-05-27 08:53:48 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-05-27 08:53:48 +0800 |
commit | aff42082441715559bb2e62e11550af1a946a8c9 (patch) | |
tree | d5349c3d486346210a989659e788b50589198e69 /pkg/setting/setting.go | |
parent | 73dbaefec50c4fc99a63c5be2891a1a34db18767 (diff) |
*: rename "gogits" to "gogs"
Diffstat (limited to 'pkg/setting/setting.go')
-rw-r--r-- | pkg/setting/setting.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pkg/setting/setting.go b/pkg/setting/setting.go index a43f881c..eb0efd11 100644 --- a/pkg/setting/setting.go +++ b/pkg/setting/setting.go @@ -25,11 +25,11 @@ import ( log "gopkg.in/clog.v1" "gopkg.in/ini.v1" - "github.com/gogits/go-libravatar" + "github.com/gogs/go-libravatar" - "github.com/gogits/gogs/pkg/bindata" - "github.com/gogits/gogs/pkg/process" - "github.com/gogits/gogs/pkg/user" + "github.com/gogs/gogs/pkg/bindata" + "github.com/gogs/gogs/pkg/process" + "github.com/gogs/gogs/pkg/user" ) type Scheme string @@ -389,7 +389,7 @@ func getOpenSSHVersion() string { log.Fatal(2, "Fail to get OpenSSH version: %v - %s", err, stderr) } - // Trim unused information: https://github.com/gogits/gogs/issues/4507#issuecomment-305150441 + // Trim unused information: https://github.com/gogs/gogs/issues/4507#issuecomment-305150441 version := strings.TrimRight(strings.Fields(stderr)[0], ",1234567890") version = strings.TrimSuffix(strings.TrimPrefix(version, "OpenSSH_"), "p") return version @@ -511,7 +511,7 @@ func NewContext() { } // Check if server is eligible for minimum key size check when user choose to enable. - // Windows server and OpenSSH version lower than 5.1 (https://github.com/gogits/gogs/issues/4507) + // Windows server and OpenSSH version lower than 5.1 (https://github.com/gogs/gogs/issues/4507) // are forced to be disabled because the "ssh-keygen" in Windows does not print key type. if SSH.MinimumKeySizeCheck && (IsWindows || version.Compare(getOpenSSHVersion(), "5.1", "<")) { @@ -816,7 +816,7 @@ func newSessionService() { SessionConfig.Provider = Cfg.Section("session").Key("PROVIDER").In("memory", []string{"memory", "file", "redis", "mysql"}) SessionConfig.ProviderConfig = strings.Trim(Cfg.Section("session").Key("PROVIDER_CONFIG").String(), "\" ") - SessionConfig.CookieName = Cfg.Section("session").Key("COOKIE_NAME").MustString("i_like_gogits") + SessionConfig.CookieName = Cfg.Section("session").Key("COOKIE_NAME").MustString("i_like_gogs") SessionConfig.CookiePath = AppSubURL SessionConfig.Secure = Cfg.Section("session").Key("COOKIE_SECURE").MustBool() SessionConfig.Gclifetime = Cfg.Section("session").Key("GC_INTERVAL_TIME").MustInt64(3600) |