Browse Source

Hide credentials when submitting migration (#9102)

through API.
Same fix, using form.CloneAddr instead of opts.CloneAddr.
for-closed-social
Jordan 5 years ago
committed by zeripath
parent
commit
ba9a2d2abb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/api/v1/repo/repo.go

+ 1
- 1
routers/api/v1/repo/repo.go View File

@ -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,

Loading…
Cancel
Save