diff options
author | 6543 <6543@obermui.de> | 2020-06-04 20:06:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 19:06:24 +0100 |
commit | 2c5b3c72e8ebdf94ac764267fa78e4a0c5e93dc6 (patch) | |
tree | 89051bec5978313d00c7f96f3ceef67f06f3c6d3 /routers/api/v1/repo | |
parent | 0cb22121f4709dc1f5c863af53618c31302714e2 (diff) | |
download | gitea-2c5b3c72e8ebdf94ac764267fa78e4a0c5e93dc6.tar.gz gitea-2c5b3c72e8ebdf94ac764267fa78e4a0c5e93dc6.zip |
Fix bug with globally disabling mirror (#11760)
Ensure we return after `ctx.Error(...)`
Diffstat (limited to 'routers/api/v1/repo')
-rw-r--r-- | routers/api/v1/repo/migrate.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/repo/migrate.go b/routers/api/v1/repo/migrate.go index 43b5a7db30..fa4b7366e8 100644 --- a/routers/api/v1/repo/migrate.go +++ b/routers/api/v1/repo/migrate.go @@ -115,6 +115,7 @@ func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm) { if form.Mirror && setting.Repository.DisableMirrors { ctx.Error(http.StatusForbidden, "MirrorsGlobalDisabled", fmt.Errorf("the site administrator has disabled mirrors")) + return } var opts = migrations.MigrateOptions{ |