1
0
Fork 0
forked from forgejo/forgejo

Revert "[GITEA] do not use deprecatedSettingFatal for cosmetic reasons"

This reverts commit 2de8602855.
This commit is contained in:
Earl Warren 2023-07-30 07:42:38 +02:00
parent df5200e814
commit f4fcdaba8c
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 7 additions and 32 deletions

View file

@ -34,14 +34,7 @@ func loadLFSFrom(rootCfg ConfigProvider) error {
// Specifically default PATH to LFS_CONTENT_PATH
// DEPRECATED should not be removed because users maybe upgrade from lower version to the latest version
// if these are removed, the warning will not be shown
deprecatedSetting(rootCfg, "server", "LFS_CONTENT_PATH", "lfs", "PATH", "v1.19.0")
if val := sec.Key("LFS_CONTENT_PATH").String(); val != "" {
if lfsSec == nil {
lfsSec = rootCfg.Section("lfs")
}
lfsSec.Key("PATH").MustString(val)
}
deprecatedSettingFatal(rootCfg, "server", "LFS_CONTENT_PATH", "lfs", "PATH", "v1.19.0")
var err error
LFS.Storage, err = getStorage(rootCfg, "lfs", "", lfsSec)