From 7c804a6f7736ebebd8bd685b059427f911040fee Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 13 Oct 2017 22:52:13 +0800 Subject: [PATCH 1/2] =?UTF-8?q?PHTWeb=E5=AE=9E=E8=AE=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/shixuns_controller.rb | 2 +- app/views/games/_code_actions.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index c7a2dd605..cf01a172f 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -626,7 +626,7 @@ class ShixunsController < ApplicationController user_gid = User.find_by_mail("eduforge@163.com").try(:gid) gshixun = g.fork(@shixun.gpid, user_gid) raise "版本库创建失败" if gshixun.try(:id).blank? - gshixun = g.edit_project(gshixun.id, new_shixun.identifier, new_shixun.identifier) + #gshixun = g.edit_project(gshixun.id, new_shixun.identifier, new_shixun.identifier) raise "实训复制失败" if (gshixun.try(:name) != new_shixun.identifier || gshixun.try(:path) != new_shixun.identifier) new_shixun.update_column(:gpid, gshixun.id) # 同步复制者至gitlab,必须要求用户绑定了邮箱 diff --git a/app/views/games/_code_actions.html.erb b/app/views/games/_code_actions.html.erb index 37598d856..f440a4f91 100644 --- a/app/views/games/_code_actions.html.erb +++ b/app/views/games/_code_actions.html.erb @@ -2,7 +2,7 @@ <% if @myshixun.shixun.try(:language) == "PHP/Web" %>