We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2222448 commit d4c9399Copy full SHA for d4c9399
modules/setting/setting.go
@@ -740,9 +740,14 @@ func NewContext() {
740
SSH.AuthorizedKeysBackup = sec.Key("SSH_AUTHORIZED_KEYS_BACKUP").MustBool(true)
741
SSH.ExposeAnonymous = sec.Key("SSH_EXPOSE_ANONYMOUS").MustBool(false)
742
743
- if err = Cfg.Section("server").MapTo(&LFS); err != nil {
+ sec = Cfg.Section("server")
744
+ if err = sec.MapTo(&LFS); err != nil {
745
log.Fatal(4, "Failed to map LFS settings: %v", err)
746
}
747
+ LFS.ContentPath = sec.Key("LFS_CONTENT_PATH").MustString(filepath.Join(AppDataPath, "lfs"))
748
+ if !filepath.IsAbs(LFS.ContentPath) {
749
+ LFS.ContentPath = filepath.Join(workDir, LFS.ContentPath)
750
+ }
751
752
if LFS.StartServer {
753
0 commit comments