diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index 8b5b0479a..1c1d2e5f1 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -20,22 +20,17 @@ class GamesController < ApplicationController # 首次进入版本库自动打开文件 # path:"" && path: @game.path def show - logger.info("*** ###############") game_path = (@game.path.blank? ? @game.path : @game.path.strip) @rev = @rev.nil? ? "master" : @rev @git_url = git_repository_url(@myshixun, "Myshixun") - logger.info("*** git_url is###{@git_url}") @type = params[:type] - logger.info("*** ###{@rev}#######{@path}") # 默认打开文件 if @path == "" && !game_path.nil? && !@repository.cat(game_path, @rev).blank? && @type != "root" @path = game_path @file_open = true @content = @repository.cat(@path, @rev) - logger.info("content result is ###############{@content}") else @entries = @repository.entries(@path, @rev) - logger.info("result is ###############{@entries.first.try(:path)}") end @latest_output = @game.latest_output.try(:out_put) outputs = @game.outputs diff --git a/lib/redmine/scm/adapters/gitlab_adapter.rb b/lib/redmine/scm/adapters/gitlab_adapter.rb index 3eb51cbc9..2f805e8ec 100644 --- a/lib/redmine/scm/adapters/gitlab_adapter.rb +++ b/lib/redmine/scm/adapters/gitlab_adapter.rb @@ -102,13 +102,10 @@ module Redmine entries = Entries.new if @project trees = @g.trees(@project, path: path, ref_name: identifier) - logger.info("project is tree #{trees}") elsif @shixun trees = @g.trees(@shixun, path: path, ref_name: identifier) - logger.info("shixun tree is #{trees}") else trees = @g.trees(@myshixun, path: path) - logger.info("myshixun tree is #{trees}") end trees.each do |tree| entries << Entry.new({