|
|
|
@ -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
|
|
|
|
|