|
|
|
@ -47,7 +47,7 @@ module GitCommon
|
|
|
|
|
def add_file
|
|
|
|
|
@path, message, content = params[:path].strip, params[:message], params[:content]
|
|
|
|
|
author_name, author_email = current_user.real_name, current_user.git_mail
|
|
|
|
|
Logger.info(" good repo_name is #{@repo_path}")
|
|
|
|
|
Rails.logger.info(" good repo_name is #{@repo_path}")
|
|
|
|
|
@content = GitService.update_file(repo_path: @repo_path,
|
|
|
|
|
file_path: @path,
|
|
|
|
|
message: message,
|
|
|
|
|