Skip to content

Commit b1a90f7

Browse files
lafriksaqtrans
andauthored
Hide credentials when submitting migration (#9102) (#9704)
through API. Same fix, using form.CloneAddr instead of opts.CloneAddr. Co-authored-by: Jordan <[email protected]>
1 parent 45c8a3a commit b1a90f7

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
@@ -436,7 +436,7 @@ func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm) {
436436
repo, err := models.CreateRepository(ctx.User, ctxUser, models.CreateRepoOptions{
437437
Name: opts.RepoName,
438438
Description: opts.Description,
439-
OriginalURL: opts.CloneAddr,
439+
OriginalURL: form.CloneAddr,
440440
IsPrivate: opts.Private,
441441
IsMirror: opts.Mirror,
442442
Status: models.RepositoryBeingMigrated,

0 commit comments

Comments
 (0)