aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/setting.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index 865dea9bca..ca222375fb 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -202,8 +202,8 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) {
address = u.String()
- if err := mirror_service.SaveAddress(ctx.Repo.Mirror, address); err != nil {
- ctx.ServerError("SaveAddress", err)
+ if err := mirror_service.UpdateAddress(ctx.Repo.Mirror, address); err != nil {
+ ctx.ServerError("UpdateAddress", err)
return
}