diff options
author | Jordan <eatsleepgame@gmail.com> | 2019-11-20 12:01:09 -0600 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-11-20 13:01:09 -0500 |
commit | 1615b3c1874932c08d504fcc111f46105a2207b6 (patch) | |
tree | 109ceb6c0de473ce6bf57786e538078b99ea011a /models | |
parent | 2ab8c78c30f6e29206b07fe15b0aec6c21df7005 (diff) | |
download | gitea-1615b3c1874932c08d504fcc111f46105a2207b6.tar.gz gitea-1615b3c1874932c08d504fcc111f46105a2207b6.zip |
Hide given credentials for migrated repos. (#9097)
CloneAddr was being saved as OriginalURL.
Now passing OriginalURL through from the form and
saving it in it's place
Diffstat (limited to 'models')
-rw-r--r-- | models/task.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/task.go b/models/task.go index cb878d387c..763644e039 100644 --- a/models/task.go +++ b/models/task.go @@ -196,7 +196,7 @@ func CreateMigrateTask(doer, u *User, opts base.MigrateOptions) (*Task, error) { repo, err := CreateRepository(doer, u, CreateRepoOptions{ Name: opts.RepoName, Description: opts.Description, - OriginalURL: opts.CloneAddr, + OriginalURL: opts.OriginalURL, IsPrivate: opts.Private, IsMirror: opts.Mirror, Status: RepositoryBeingMigrated, |