diff --git a/app/controllers/concerns/git_helper.rb b/app/controllers/concerns/git_helper.rb index 5bee6562a..d77e1c3f6 100644 --- a/app/controllers/concerns/git_helper.rb +++ b/app/controllers/concerns/git_helper.rb @@ -51,7 +51,6 @@ module GitHelper new_repo_name = "#{username.try(:strip)}/#{container.try(:identifier)}#{ Time.now.strftime("%Y%m%d%H%M%S")}" uid_logger("start fork container: repo_name is #{new_repo_name}") GitService.fork_repository(repo_path: original_rep_path, fork_repository_path: (new_repo_name + ".git")) - raise("test") container.update_attributes!(:repo_name => new_repo_name) end diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index a707536bb..de164c907 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -687,6 +687,7 @@ class ShixunsController < ApplicationController challenges.each_with_index do |challenge, index| status = (index == 0 ? 0 : 3) game_identifier = generate_identifier(Game, 12) + raise("test") worker.add(base_attr.merge(challenge_id: challenge.id, status: status, open_time: Time.now, identifier: game_identifier, modify_time: challenge.modify_time)) end