1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Moved UpdateRepository() to CleanUpMigrateInfo() and correctly delete mirror from database

This commit is contained in:
Martin Hartkorn
2016-02-15 14:53:58 +01:00
parent 15d37b7a95
commit bb595666ac
2 changed files with 8 additions and 8 deletions

View File

@@ -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
}