repo content

dev_forum
jingquan huang 6 years ago
parent ebd621750b
commit 80f4c8f6ba

@ -493,9 +493,11 @@ class GamesController < ApplicationController
g = Gitlab.client
repo_name = g.project(@myshixun.gpid).path_with_namespace
@myshixun.update_column(:repo_name, repo_name)
@content = git_fle_content("#{repo_name}.git", path) || ""
else
@content = git_fle_content(@myshixun.repo_path, path) || ""
end
@content = git_fle_content("#{repo_name}.git", path) || ""
rescue Exception => e
# 思路: 异常首先应该考虑去恢复
if params[:retry].to_i == 1

Loading…
Cancel
Save