]> source.dussan.org Git - gitea.git/commitdiff
Resolve deprecated INI conversion (#9525)
authortechknowlogick <techknowlogick@gitea.io>
Sat, 28 Dec 2019 03:37:26 +0000 (22:37 -0500)
committerGitHub <noreply@github.com>
Sat, 28 Dec 2019 03:37:26 +0000 (22:37 -0500)
Per https://github.com/go-ini/ini/blob/8fe474341f7eedd6804eda75896c8f3e4b5dc36a/deprecated.go#L24

contrib/environment-to-ini/environment-to-ini.go

index d452cb28c4168a5e2928d2ebf2d973a09f179dd0..e9dc383cb4c273db174ad4dc5a0891df3d767f9b 100644 (file)
@@ -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") + "__"