From fda859c1ad1801887bb2fee53f14520896300e0c Mon Sep 17 00:00:00 2001 From: nopjmp Date: Sat, 11 May 2019 21:15:00 -0500 Subject: [PATCH] cmd/serv: initalize session settings properly This should fix #5478 and with REQUIRE_SIGNIN_VIEW=true lfs auth errors --- cmd/serv.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/serv.go b/cmd/serv.go index a30e02e7a264f..bee9d5407b4f6 100644 --- a/cmd/serv.go +++ b/cmd/serv.go @@ -67,6 +67,7 @@ func checkLFSVersion() { func setup(logPath string) { log.DelLogger("console") setting.NewContext() + setting.NewServices() // cannot access session settings otherwise checkLFSVersion() log.NewGitLogger(filepath.Join(setting.LogRootPath, logPath)) }