mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-12 22:43:28 +00:00
Moved UpdateRepository() to CleanUpMigrateInfo() and correctly delete mirror from database
This commit is contained in:
1 parent
15d37b7a95
commit
bb595666ac
2 files changed
+8
-8
No files matched your search
@@ -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