From aff42082441715559bb2e62e11550af1a946a8c9 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 27 May 2018 08:53:48 +0800 Subject: *: rename "gogits" to "gogs" --- pkg/setting/miniwinsvc.go | 2 +- pkg/setting/setting.go | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'pkg/setting') diff --git a/pkg/setting/miniwinsvc.go b/pkg/setting/miniwinsvc.go index 730b3ea3..a7c6890d 100644 --- a/pkg/setting/miniwinsvc.go +++ b/pkg/setting/miniwinsvc.go @@ -7,7 +7,7 @@ package setting import ( - _ "github.com/gogits/minwinsvc" + _ "github.com/gogs/minwinsvc" ) func init() { 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) -- cgit v1.2.3