diff --git a/conf.example.yml b/conf.example.yml index 415e5e3..6b10ae4 100644 --- a/conf.example.yml +++ b/conf.example.yml @@ -200,6 +200,7 @@ destination: url: http(s)://url-to-gitea createorg: true # creates an organization if it doesn't exist already, if no user is set it creates an organization with the name of the original author mirrorinterval: 2h0m0s # interval to pull changes from source repo + lfs: false # trigger to enable lfs on gitea visibility: repositories: private # private, public, default: private organizations: private # private, limited, public, default: private diff --git a/gitea/gitea.go b/gitea/gitea.go index 4dd0193..0dd5ef1 100644 --- a/gitea/gitea.go +++ b/gitea/gitea.go @@ -109,6 +109,7 @@ func Backup(r types.Repo, d types.GenRepo, dry bool) bool { Private: repovisibility, Description: r.Description, MirrorInterval: d.MirrorInterval, + LFS: d.LFS, } if r.Token == "" { @@ -123,6 +124,7 @@ func Backup(r types.Repo, d types.GenRepo, dry bool) bool { Private: repovisibility, Description: r.Description, MirrorInterval: d.MirrorInterval, + LFS: d.LFS, } } diff --git a/types/types.go b/types/types.go index bf2a55c..2ec9aa7 100644 --- a/types/types.go +++ b/types/types.go @@ -249,6 +249,7 @@ type GenRepo struct { Force bool `yaml:"force"` Contributed bool `yaml:"contributed"` MirrorInterval string `yaml:"mirrorinterval"` + LFS bool `yaml:"lfs"` } // Visibility struct