diff options
Diffstat (limited to 'routers/repo/setting.go')
-rw-r--r-- | routers/repo/setting.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go index 99f9b8af..14d29636 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -107,6 +107,7 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) { if repo.IsMirror { if form.Interval > 0 { + ctx.Repo.Mirror.EnablePrune = form.EnablePrune ctx.Repo.Mirror.Interval = form.Interval ctx.Repo.Mirror.NextUpdate = time.Now().Add(time.Duration(form.Interval) * time.Hour) if err := models.UpdateMirror(ctx.Repo.Mirror); err != nil { |