1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-03 00:45:22 +02: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
}