1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 13:49:13 -05:00

[GITEA] avoid creation of deprecated LFS_CONTENT_PATH setting

Fixes: https://codeberg.org/forgejo/forgejo/issues/818
This commit is contained in:
Earl Warren 2023-06-08 09:32:01 +02:00
parent f43e9fc4fd
commit 412bb994d5
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -36,7 +36,9 @@ func loadLFSFrom(rootCfg ConfigProvider) {
// DEPRECATED should not be removed because users maybe upgrade from lower version to the latest version // 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 // if these are removed, the warning will not be shown
deprecatedSetting(rootCfg, "server", "LFS_CONTENT_PATH", "lfs", "PATH", "v1.19.0") deprecatedSetting(rootCfg, "server", "LFS_CONTENT_PATH", "lfs", "PATH", "v1.19.0")
lfsSec.Key("PATH").MustString(sec.Key("LFS_CONTENT_PATH").String()) if sec.HasKey("LFS_CONTENT_PATH") {
lfsSec.Key("PATH").MustString(sec.Key("LFS_CONTENT_PATH").String())
}
LFS.Storage = getStorage(rootCfg, "lfs", storageType, lfsSec) LFS.Storage = getStorage(rootCfg, "lfs", storageType, lfsSec)