diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-05-04 05:55:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 05:55:35 +0200 |
commit | 377a0a20f01a62f15a1504a3bba6cf6cc0c98bea (patch) | |
tree | e86a1818f23be1605a4cd707fadc7dcdce546d18 /cmd/cmd.go | |
parent | Changelog for 1.19.3 (#24495) (#24506) (diff) | |
download | forgejo-377a0a20f01a62f15a1504a3bba6cf6cc0c98bea.tar.xz forgejo-377a0a20f01a62f15a1504a3bba6cf6cc0c98bea.zip |
Merge setting.InitXXX into one function with options (#24389)
This PR will merge 3 Init functions on setting packages as 1 and
introduce an options struct.
Diffstat (limited to 'cmd/cmd.go')
-rw-r--r-- | cmd/cmd.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/cmd.go b/cmd/cmd.go index 18d5db3987..cf2d9ef89e 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -57,8 +57,7 @@ func confirm() (bool, error) { } func initDB(ctx context.Context) error { - setting.InitProviderFromExistingFile() - setting.LoadCommonSettings() + setting.Init(&setting.Options{}) setting.LoadDBSetting() setting.InitSQLLog(false) |