From d5f83aebc828add70ce9243692c9e81b83201cd3 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 18 Nov 2019 14:04:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E6=B5=8B=E8=AF=95=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/subjects/copy_subject_service.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)