Skip to content

Commit

Permalink
Hide credentials when submitting migration (#9102)
Browse files Browse the repository at this point in the history
through API.
Same fix, using form.CloneAddr instead of opts.CloneAddr.
  • Loading branch information
aqtrans authored and zeripath committed Nov 22, 2019
1 parent 7bc8c6b commit ba9a2d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/api/v1/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ba9a2d2

Please sign in to comment.