去掉日志打印

This commit is contained in:
huang 2017-03-27 15:15:07 +08:00
parent 58c2c7640a
commit 598e00f5c6
2 changed files with 0 additions and 8 deletions

View File

@ -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

View File

@ -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({