单个项目同步输出

This commit is contained in:
huang 2015-11-27 18:43:22 +08:00
parent ae9f1c704a
commit 2749066908
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ namespace :sync_rep do
if project.repositories && project.repositories.count == 1 && project.repositories.first.type == "Repository::Git"
rep = project.repositories.first
count = Repository.find_by_sql("SELECT * FROM `repositories` where identifier = '#{rep.identifier}'").count
puts count
puts project.id
unless count > 1
rep.identifier
s = Trustie::Gitlab::Sync.new