summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorJordan <me@jba.io>2019-11-22 00:37:37 -0600
committerzeripath <art27@cantab.net>2019-11-22 06:37:37 +0000
commitba9a2d2abb576c12776333300bd361bac7bf1406 (patch)
tree6c99f1d74c3f563972bf7b53cd9fce66187ee7f2 /routers
parent7bc8c6b1805546ee942a07680633fe57e8e45ef6 (diff)
downloadgitea-ba9a2d2abb576c12776333300bd361bac7bf1406.tar.gz
gitea-ba9a2d2abb576c12776333300bd361bac7bf1406.zip
Hide credentials when submitting migration (#9102)
through API. Same fix, using form.CloneAddr instead of opts.CloneAddr.
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/repo/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go
index e2a3bfc873..cab0fc07e0 100644
--- a/routers/api/v1/repo/repo.go
+++ b/routers/api/v1/repo/repo.go
@@ -446,7 +446,7 @@ func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm) {
repo, err := models.CreateRepository(ctx.User, ctxUser, models.CreateRepoOptions{
Name: opts.RepoName,
Description: opts.Description,
- OriginalURL: opts.CloneAddr,
+ OriginalURL: form.CloneAddr,
IsPrivate: opts.Private,
IsMirror: opts.Mirror,
Status: models.RepositoryBeingMigrated,