|
|
@ -893,7 +893,7 @@ class ShixunsController < ApplicationController
|
|
|
|
content = upload_file.tempfile.read
|
|
|
|
content = upload_file.tempfile.read
|
|
|
|
author_name = current_user.real_name
|
|
|
|
author_name = current_user.real_name
|
|
|
|
author_email = current_user.git_mail
|
|
|
|
author_email = current_user.git_mail
|
|
|
|
update_file_content(content, @repo_path, author_email, author_name, "upload file by browser")
|
|
|
|
update_file_content(content, @repo_path, @path, author_email, author_name, "upload file by browser")
|
|
|
|
render_ok
|
|
|
|
render_ok
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|