Skip to content

Commit fda859c

Browse files
committed
cmd/serv: initalize session settings properly
This should fix go-gitea#5478 and with REQUIRE_SIGNIN_VIEW=true lfs auth errors
1 parent 13583a6 commit fda859c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/serv.go

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ func checkLFSVersion() {
6767
func setup(logPath string) {
6868
log.DelLogger("console")
6969
setting.NewContext()
70+
setting.NewServices() // cannot access session settings otherwise
7071
checkLFSVersion()
7172
log.NewGitLogger(filepath.Join(setting.LogRootPath, logPath))
7273
}

0 commit comments

Comments
 (0)