diff options
author | Martin Hartkorn <github@hartkorn.net> | 2016-02-15 14:53:58 +0100 |
---|---|---|
committer | Martin Hartkorn <github@hartkorn.net> | 2016-02-15 14:59:24 +0100 |
commit | bb595666ac3bdb5f16fa10663bd8890eb320fcb1 (patch) | |
tree | c3987eb0fc911cee7bf86ce9ef526c03ea8df5e0 /routers/repo/setting.go | |
parent | 15d37b7a95829e7551d843925fb034bbc613b8f2 (diff) | |
download | gitea-bb595666ac3bdb5f16fa10663bd8890eb320fcb1.tar.gz gitea-bb595666ac3bdb5f16fa10663bd8890eb320fcb1.zip |
Moved UpdateRepository() to CleanUpMigrateInfo() and correctly delete mirror from database
Diffstat (limited to 'routers/repo/setting.go')
-rw-r--r-- | routers/repo/setting.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go index cb541fc98e..3712a088b0 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -165,7 +165,7 @@ func SettingsPost(ctx *middleware.Context, form auth.RepoSettingForm) { return } - if err := models.UpdateRepository(repo, false); err != nil { + if err := models.DeleteMirrorByRepoID(ctx.Repo.Repository.ID); err != nil { ctx.RenderWithErr(ctx.Tr("settings.convert.failed"), SETTINGS_OPTIONS, &form) return } |