diff options
author | Pablo Saavedra <saavedra.pablo@gmail.com> | 2016-07-09 07:22:28 +0200 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-07-09 13:22:28 +0800 |
commit | 98b152030dd99a58dd0e27aac9d0eee06cc88c43 (patch) | |
tree | c9a68cdcabed5ba783b8e7f47c8140e758d4e840 /routers/repo | |
parent | 467d7dacb68da78c1ec8dbe45d1dc745ecdf7f8d (diff) | |
download | gitea-98b152030dd99a58dd0e27aac9d0eee06cc88c43.tar.gz gitea-98b152030dd99a58dd0e27aac9d0eee06cc88c43.zip |
The pruning for the synchronized mirrors is a option now. Default value: enable_prune = true (#3246)
Executed go fmt
getEngine() not handles DB parameters (#2972) (#2974)
Uses .AllCols() for Update in updateMirror()
Spanish traslation removed
Fixed a wrong way to ommit the --prune option in process.ExecDir() for MirrorUpdate function
Diffstat (limited to 'routers/repo')
-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 99f9b8af83..14d2963656 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 { |