diff --git a/lib/tasks/commit_log_to_db.rake b/lib/tasks/commit_log_to_db.rake index b434583f2..359a844fc 100644 --- a/lib/tasks/commit_log_to_db.rake +++ b/lib/tasks/commit_log_to_db.rake @@ -63,6 +63,7 @@ namespace :commit_log_to_db do # "luoyuan " commit_author = "#{commiter['name']} <#{commiter['email']}>" commit_sha = commit['sha'] + next if CommitLog.find_by(commit_id: commit_sha).present? ref = "master" commit_message = commit['commit']['message'].to_s.gsub("/n","").gsub("\"","") user = User.find_by(mail: commiter['email'])