先测试迁移任务

dev_home
daiao 5 years ago
parent 7edcc97b74
commit d5f83aebc8

@ -66,10 +66,10 @@ class Subjects::CopySubjectService < ApplicationService
to_shixun.laboratory_id = laboratory.id to_shixun.laboratory_id = laboratory.id
end end
# 复制版本库 # 复制版本库
fork_repository_name = "#{user.login}/#{to_shixun.identifier}" # fork_repository_name = "#{user.login}/#{to_shixun.identifier}"
GitService.fork_repository(repo_path: "#{shixun.repo_name}.git", # GitService.fork_repository(repo_path: "#{shixun.repo_name}.git",
fork_repository_path: (fork_repository_name + ".git")) # fork_repository_path: (fork_repository_name + ".git"))
to_shixun.repo_name = fork_repository_name # to_shixun.repo_name = fork_repository_name
to_shixun.save! to_shixun.save!
copy_shixun_info_data!(shixun, to_shixun) copy_shixun_info_data!(shixun, to_shixun)

Loading…
Cancel
Save