|
|
@ -46,6 +46,12 @@ module GitHelper
|
|
|
|
content: content, author_name: username, author_email: mail)
|
|
|
|
content: content, author_name: username, author_email: mail)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def update_file_base64_content(content, repo_path, path, mail, username, message)
|
|
|
|
|
|
|
|
content = Base64.encode64(content)
|
|
|
|
|
|
|
|
GitService.update_file_base64(repo_path: repo_path, file_path: path, message: message,
|
|
|
|
|
|
|
|
content: content, author_name: username, author_email: mail)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# 添加目录
|
|
|
|
# 添加目录
|
|
|
|
def git_add_folder(folder_path, author_name, author_email, message)
|
|
|
|
def git_add_folder(folder_path, author_name, author_email, message)
|
|
|
|
GitService.add_tree(file_path: folder_path, message: message, author_name: author_name, author_email: author_email)
|
|
|
|
GitService.add_tree(file_path: folder_path, message: message, author_name: author_name, author_email: author_email)
|
|
|
|