change bugs

This commit is contained in:
sylor_huang@126.com
2020-07-10 17:20:13 +08:00
parent 65b03f7c71
commit e0d9bfab6d
2 changed files with 14 additions and 14 deletions

View File

@@ -6,6 +6,8 @@ class SyncRepositoryJob < ApplicationJob
def perform(repository, repository_params, gitea_main)
#创建临时文件夹 clone 并强推代码
SyncLog.sync_log("=================begin to sync request trustie repository=====================")
SyncLog.sync_log("=================begin to sync repository_params:==#{repository_params}===================")
SyncLog.sync_log("=================repository_url:==#{repository_params[:url]}===================")
path = "#{Rails.root}/public/cache_repository"
unless File.directory?(path)
FileUtils.mkdir_p(path)