|
|
|
@ -53,14 +53,16 @@ module GitHelper
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 添加目录
|
|
|
|
|
def git_add_folder(repo_path, folder_path, author_name, author_email, message)
|
|
|
|
|
GitService.add_tree(repo_path: repo_path, file_path: folder_path, message: message, author_name: author_name,
|
|
|
|
|
def git_add_folder(repo_path, tree_path, author_name, author_email, message)
|
|
|
|
|
Rails.logger.info("#####repo_path:#{repo_path}, tree_path: #{tree_path}")
|
|
|
|
|
GitService.add_tree(repo_path: repo_path, tree_path: tree_path, message: message, author_name: author_name,
|
|
|
|
|
author_email: author_email)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 删除文件
|
|
|
|
|
def git_delete_file(repo_path, file_path, author_name, author_email, message)
|
|
|
|
|
GitService.delete_file(repo_path, repo_path, file_path: file_path, message: message, author_name: author_name,
|
|
|
|
|
def git_delete_file(repo_path, tree_path, author_name, author_email, message)
|
|
|
|
|
Rails.logger.info("#####repo_path:#{repo_path}, tree_path: #{tree_path}")
|
|
|
|
|
GitService.delete_file(repo_path: repo_path, tree_path: tree_path, message: message, author_name: author_name,
|
|
|
|
|
author_email: author_email)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|