From: techknowlogick Date: Sat, 28 Dec 2019 03:37:26 +0000 (-0500) Subject: Resolve deprecated INI conversion (#9525) X-Git-Tag: v1.11.0-rc1~62 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=10455a88dc28c00f86587266a1ecd736bea63d03;p=gitea.git Resolve deprecated INI conversion (#9525) Per https://github.com/go-ini/ini/blob/8fe474341f7eedd6804eda75896c8f3e4b5dc36a/deprecated.go#L24 --- diff --git a/contrib/environment-to-ini/environment-to-ini.go b/contrib/environment-to-ini/environment-to-ini.go index d452cb28c4..e9dc383cb4 100644 --- a/contrib/environment-to-ini/environment-to-ini.go +++ b/contrib/environment-to-ini/environment-to-ini.go @@ -104,7 +104,7 @@ func runEnvironmentToIni(c *cli.Context) error { } else { log.Warn("Custom config '%s' not found, ignore this if you're running first time", setting.CustomConf) } - cfg.NameMapper = ini.AllCapsUnderscore + cfg.NameMapper = ini.SnackCase prefix := c.String("prefix") + "__"