|
|
|
@ -272,7 +272,7 @@ class MyshixunsController < ApplicationController
|
|
|
|
|
# 远程版本库文件内容
|
|
|
|
|
last_content = GitService.file_content(repo_path: @repo_path, path: path)["content"]
|
|
|
|
|
content = if @myshixun.mirror_name.select {|a| a.include?("MachineLearning") || a.include?("Python")}.present? && params[:content].present?
|
|
|
|
|
params[:content].gsub(/\t/, ' ')
|
|
|
|
|
params[:content].gsub(/\t/, ' ').gsub(/ /, ' ')
|
|
|
|
|
else
|
|
|
|
|
params[:content]
|
|
|
|
|
end
|
|
|
|
|