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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user