summaryrefslogtreecommitdiffstats
path: root/cmd/hook.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2018-10-30 18:41:25 +0800
committerLauris BH <lauris@nix.lv>2018-10-30 12:41:25 +0200
commit0ba57949e41935ed68b7278b493bf7bd1a272331 (patch)
tree02b12986abe800a0b5fa40d8feb771ea5e3160f6 /cmd/hook.go
parent5fc0a1262745778a58ff50e34b34e1f6aa3ccd63 (diff)
downloadgitea-0ba57949e41935ed68b7278b493bf7bd1a272331.tar.gz
gitea-0ba57949e41935ed68b7278b493bf7bd1a272331.zip
remove unused db init on commands serv, update, hooks (#5225)
Diffstat (limited to 'cmd/hook.go')
-rw-r--r--cmd/hook.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/cmd/hook.go b/cmd/hook.go
index 27500f9c66..fb54ca186a 100644
--- a/cmd/hook.go
+++ b/cmd/hook.go
@@ -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 {