diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index 90906a0c4..6f2f62143 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -18,6 +18,7 @@ class GamesController < ApplicationController # mushixun的版本库必须创建时就创建 def show + @rev = @rev.nil? ? "master" : @rev @git_url = git_repository_url(@myshixun, "Myshixun") @entries = @repository.entries(@path, @rev) @latest_output = @game.latest_output.try(:out_put) diff --git a/app/views/games/_tree.html.erb b/app/views/games/_tree.html.erb index 7dbc00a37..145592b17 100644 --- a/app/views/games/_tree.html.erb +++ b/app/views/games/_tree.html.erb @@ -7,7 +7,6 @@ <% sub_path = entry.path[0] == "/" ? entry.path.sub("/", "") : entry.path %> <% ent_path = Redmine::CodesetUtil.replace_invalid_utf8(sub_path) %> <% ent_name = Redmine::CodesetUtil.replace_invalid_utf8(entry.name) %> -