diff --git a/app/services/subjects/copy_subject_service.rb b/app/services/subjects/copy_subject_service.rb index 5f8481cae..51eaf9342 100644 --- a/app/services/subjects/copy_subject_service.rb +++ b/app/services/subjects/copy_subject_service.rb @@ -66,10 +66,10 @@ class Subjects::CopySubjectService < ApplicationService to_shixun.laboratory_id = laboratory.id end # 复制版本库 - fork_repository_name = "#{user.login}/#{to_shixun.identifier}" - GitService.fork_repository(repo_path: "#{shixun.repo_name}.git", - fork_repository_path: (fork_repository_name + ".git")) - to_shixun.repo_name = fork_repository_name + # fork_repository_name = "#{user.login}/#{to_shixun.identifier}" + # GitService.fork_repository(repo_path: "#{shixun.repo_name}.git", + # fork_repository_path: (fork_repository_name + ".git")) + # to_shixun.repo_name = fork_repository_name to_shixun.save! copy_shixun_info_data!(shixun, to_shixun)