Skip to content

Commit

Permalink
Hide credentials when submitting migration (go-gitea#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 lafriks committed Jan 11, 2020
1 parent 0e5126d commit 5bf51b1
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 @@ -436,7 +436,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 5bf51b1

Please sign in to comment.