mirror of https://github.com/go-gitea/gitea.git
Backport: Hide given credentials for migrated repos. (#9098)
CloneAddr was being used as OriginalURL. Now passing OriginalURL through from the form and saving it.
This commit is contained in:
parent
38ce87a61a
commit
ade5ec5aa7
|
@ -196,7 +196,7 @@ func CreateMigrateTask(doer, u *User, opts base.MigrateOptions) (*Task, error) {
|
||||||
repo, err := CreateRepository(doer, u, CreateRepoOptions{
|
repo, err := CreateRepository(doer, u, CreateRepoOptions{
|
||||||
Name: opts.RepoName,
|
Name: opts.RepoName,
|
||||||
Description: opts.Description,
|
Description: opts.Description,
|
||||||
OriginalURL: opts.CloneAddr,
|
OriginalURL: opts.OriginalURL,
|
||||||
IsPrivate: opts.Private,
|
IsPrivate: opts.Private,
|
||||||
IsMirror: opts.Mirror,
|
IsMirror: opts.Mirror,
|
||||||
Status: RepositoryBeingMigrated,
|
Status: RepositoryBeingMigrated,
|
||||||
|
|
|
@ -291,6 +291,7 @@ func MigratePost(ctx *context.Context, form auth.MigrateRepoForm) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var opts = migrations.MigrateOptions{
|
var opts = migrations.MigrateOptions{
|
||||||
|
OriginalURL: form.CloneAddr,
|
||||||
CloneAddr: remoteAddr,
|
CloneAddr: remoteAddr,
|
||||||
RepoName: form.RepoName,
|
RepoName: form.RepoName,
|
||||||
Description: form.Description,
|
Description: form.Description,
|
||||||
|
|
Loading…
Reference in New Issue