|
|
@ -9,6 +9,7 @@ module GitHelper
|
|
|
|
# 版本库文件内容,带转码
|
|
|
|
# 版本库文件内容,带转码
|
|
|
|
def git_fle_content(repo_path, path)
|
|
|
|
def git_fle_content(repo_path, path)
|
|
|
|
begin
|
|
|
|
begin
|
|
|
|
|
|
|
|
raise Educoder::TipException.new("文档内容获取异常")
|
|
|
|
Rails.logger.info("git file content: repo_path is #{repo_path}, path is #{path}")
|
|
|
|
Rails.logger.info("git file content: repo_path is #{repo_path}, path is #{path}")
|
|
|
|
|
|
|
|
|
|
|
|
content = GitService.file_content(repo_path: repo_path, path: path)
|
|
|
|
content = GitService.file_content(repo_path: repo_path, path: path)
|
|
|
|