diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-10 23:35:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-10 23:35:17 +0800 |
commit | 7a3a90aca3c4a8258805efa10022a81e4d1a4d73 (patch) | |
tree | 54d92bac08a2aa336825cd1545dcd19fba028c96 /models/task.go | |
parent | 3143bb10da25cd66383c23aff7b31dbd7c3dd9d6 (diff) | |
download | gitea-7a3a90aca3c4a8258805efa10022a81e4d1a4d73.tar.gz gitea-7a3a90aca3c4a8258805efa10022a81e4d1a4d73.zip |
Fix wrong original git service type on a migrated repository (#9693)
Diffstat (limited to 'models/task.go')
-rw-r--r-- | models/task.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/models/task.go b/models/task.go index 763644e039..e1d751bc3c 100644 --- a/models/task.go +++ b/models/task.go @@ -194,12 +194,13 @@ func CreateMigrateTask(doer, u *User, opts base.MigrateOptions) (*Task, error) { } repo, err := CreateRepository(doer, u, CreateRepoOptions{ - Name: opts.RepoName, - Description: opts.Description, - OriginalURL: opts.OriginalURL, - IsPrivate: opts.Private, - IsMirror: opts.Mirror, - Status: RepositoryBeingMigrated, + Name: opts.RepoName, + Description: opts.Description, + OriginalURL: opts.OriginalURL, + GitServiceType: opts.GitServiceType, + IsPrivate: opts.Private, + IsMirror: opts.Mirror, + Status: RepositoryBeingMigrated, }) if err != nil { task.EndTime = timeutil.TimeStampNow() |