Skip to content

Commit ba9a2d2

Browse files
aqtranszeripath
authored andcommitted
Hide credentials when submitting migration (#9102)
through API. Same fix, using form.CloneAddr instead of opts.CloneAddr.
1 parent 7bc8c6b commit ba9a2d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/repo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm) {
446446
repo, err := models.CreateRepository(ctx.User, ctxUser, models.CreateRepoOptions{
447447
Name: opts.RepoName,
448448
Description: opts.Description,
449-
OriginalURL: opts.CloneAddr,
449+
OriginalURL: form.CloneAddr,
450450
IsPrivate: opts.Private,
451451
IsMirror: opts.Mirror,
452452
Status: models.RepositoryBeingMigrated,

0 commit comments

Comments
 (0)