Hide credentials when submitting migration (#9102)
through API. Same fix, using form.CloneAddr instead of opts.CloneAddr.
This commit is contained in:
parent
7bc8c6b180
commit
ba9a2d2abb
|
@ -446,7 +446,7 @@ func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm) {
|
||||||
repo, err := models.CreateRepository(ctx.User, ctxUser, models.CreateRepoOptions{
|
repo, err := models.CreateRepository(ctx.User, ctxUser, models.CreateRepoOptions{
|
||||||
Name: opts.RepoName,
|
Name: opts.RepoName,
|
||||||
Description: opts.Description,
|
Description: opts.Description,
|
||||||
OriginalURL: opts.CloneAddr,
|
OriginalURL: form.CloneAddr,
|
||||||
IsPrivate: opts.Private,
|
IsPrivate: opts.Private,
|
||||||
IsMirror: opts.Mirror,
|
IsMirror: opts.Mirror,
|
||||||
Status: models.RepositoryBeingMigrated,
|
Status: models.RepositoryBeingMigrated,
|
||||||
|
|
Loading…
Reference in New Issue