aboutsummaryrefslogtreecommitdiff
path: root/internal/conf
diff options
context:
space:
mode:
Diffstat (limited to 'internal/conf')
-rw-r--r--internal/conf/conf.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/internal/conf/conf.go b/internal/conf/conf.go
index 5a16951e..49bb2949 100644
--- a/internal/conf/conf.go
+++ b/internal/conf/conf.go
@@ -359,14 +359,21 @@ func Init(customConf string) error {
}
I18n.dateLangs = File.Section("i18n.datelang").KeysHash()
+ // *************************
+ // ----- LFS settings -----
+ // *************************
+
+ if err = File.Section("lfs").MapTo(&LFS); err != nil {
+ return errors.Wrap(err, "mapping [lfs] section")
+ }
+ LFS.ObjectsPath = ensureAbs(LFS.ObjectsPath)
+
handleDeprecated()
if err = File.Section("cache").MapTo(&Cache); err != nil {
return errors.Wrap(err, "mapping [cache] section")
} else if err = File.Section("http").MapTo(&HTTP); err != nil {
return errors.Wrap(err, "mapping [http] section")
- } else if err = File.Section("lfs").MapTo(&LFS); err != nil {
- return errors.Wrap(err, "mapping [lfs] section")
} else if err = File.Section("release").MapTo(&Release); err != nil {
return errors.Wrap(err, "mapping [release] section")
} else if err = File.Section("webhook").MapTo(&Webhook); err != nil {