mirror of
https://github.com/gogs/gogs.git
synced 2025-12-20 23:30:00 +01:00
Update XORM required version and 'go fmt'
This commit is contained in:
@@ -84,7 +84,7 @@ func checkVersion() {
|
|||||||
|
|
||||||
// Check dependency version.
|
// Check dependency version.
|
||||||
checkers := []VerChecker{
|
checkers := []VerChecker{
|
||||||
{"github.com/go-xorm/xorm", func() string { return xorm.Version }, "0.5.5"},
|
{"github.com/go-xorm/xorm", func() string { return xorm.Version }, "0.6.0"},
|
||||||
{"github.com/go-macaron/binding", binding.Version, "0.3.2"},
|
{"github.com/go-macaron/binding", binding.Version, "0.3.2"},
|
||||||
{"github.com/go-macaron/cache", cache.Version, "0.1.2"},
|
{"github.com/go-macaron/cache", cache.Version, "0.1.2"},
|
||||||
{"github.com/go-macaron/csrf", csrf.Version, "0.1.0"},
|
{"github.com/go-macaron/csrf", csrf.Version, "0.1.0"},
|
||||||
|
|||||||
@@ -113,13 +113,14 @@ var (
|
|||||||
|
|
||||||
// Repository settings
|
// Repository settings
|
||||||
Repository struct {
|
Repository struct {
|
||||||
AnsiCharset string
|
AnsiCharset string
|
||||||
ForcePrivate bool
|
ForcePrivate bool
|
||||||
MaxCreationLimit int
|
MaxCreationLimit int
|
||||||
MirrorQueueLength int
|
MirrorQueueLength int
|
||||||
PullRequestQueueLength int
|
PullRequestQueueLength int
|
||||||
PreferredLicenses []string
|
PreferredLicenses []string
|
||||||
DisableHTTPGit bool `ini:"DISABLE_HTTP_GIT"`
|
DisableHTTPGit bool `ini:"DISABLE_HTTP_GIT"`
|
||||||
|
EnableLocalPathMigration bool
|
||||||
|
|
||||||
// Repository editor settings
|
// Repository editor settings
|
||||||
Editor struct {
|
Editor struct {
|
||||||
@@ -759,11 +760,11 @@ func newMailService() {
|
|||||||
}
|
}
|
||||||
MailService.From = sec.Key("FROM").MustString(MailService.User)
|
MailService.From = sec.Key("FROM").MustString(MailService.User)
|
||||||
|
|
||||||
parsed, err := mail.ParseAddress(MailService.From)
|
parsed, err := mail.ParseAddress(MailService.From)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(4, "Invalid mailer.FROM (%s): %v", MailService.From, err)
|
log.Fatal(4, "Invalid mailer.FROM (%s): %v", MailService.From, err)
|
||||||
}
|
}
|
||||||
MailService.FromEmail = parsed.Address
|
MailService.FromEmail = parsed.Address
|
||||||
|
|
||||||
log.Info("Mail Service Enabled")
|
log.Info("Mail Service Enabled")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user