diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-02-21 06:18:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 16:18:26 -0600 |
commit | d845be661f5205b70d4fa6883e7912a5d2491218 (patch) | |
tree | 2c946a94512cdac7557d4a942acf0377efa583e4 /modules/setting/mirror.go | |
parent | d2128b44f714fcaacdc88865e62f6f9dd8216577 (diff) | |
download | gitea-d845be661f5205b70d4fa6883e7912a5d2491218.tar.gz gitea-d845be661f5205b70d4fa6883e7912a5d2491218.zip |
handle deprecated settings (#22992)
Fix #22736
Diffstat (limited to 'modules/setting/mirror.go')
-rw-r--r-- | modules/setting/mirror.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/setting/mirror.go b/modules/setting/mirror.go index 875062f522..cd6b8d4562 100644 --- a/modules/setting/mirror.go +++ b/modules/setting/mirror.go @@ -27,8 +27,9 @@ var Mirror = struct { func loadMirrorFrom(rootCfg ConfigProvider) { // Handle old configuration through `[repository]` `DISABLE_MIRRORS` // - please note this was badly named and only disabled the creation of new pull mirrors - // FIXME: DEPRECATED to be removed in v1.18.0 - deprecatedSetting(rootCfg, "repository", "DISABLE_MIRRORS", "mirror", "ENABLED") + // 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, "repository", "DISABLE_MIRRORS", "mirror", "ENABLED", "v1.19.0") if rootCfg.Section("repository").Key("DISABLE_MIRRORS").MustBool(false) { Mirror.DisableNewPull = true } |