|
|
@ -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)
|
|
|
|