]> source.dussan.org Git - gitea.git/commitdiff
remove unused db init on commands serv, update, hooks (#5225)
authorLunny Xiao <xiaolunwen@gmail.com>
Tue, 30 Oct 2018 10:41:25 +0000 (18:41 +0800)
committerLauris BH <lauris@nix.lv>
Tue, 30 Oct 2018 10:41:25 +0000 (12:41 +0200)
cmd/hook.go

index 27500f9c666d0daba21c8bcf4cef9bf46e389b85..fb54ca186a3a9ec7a0754c8450eb37254233fccf 100644 (file)
@@ -66,7 +66,6 @@ var (
 func hookSetup(logPath string) {
        setting.NewContext()
        log.NewGitLogger(filepath.Join(setting.LogRootPath, logPath))
-       models.LoadConfigs()
 }
 
 func runHookPreReceive(c *cli.Context) error {