Create MR tracking repository in MR processor *synchronously* 264
authorMarcin Kulik <m@ku1ik.com>
Wed, 12 Mar 2014 15:04:46 +0000 (16:04 +0100)
committerMarcin Kulik <m@ku1ik.com>
Wed, 12 Mar 2014 15:04:46 +0000 (16:04 +0100)
commit4fdfbb667ae343f9e794a29b619bdb33721e8e3c
tree1f8a06f1c0dec02eae38fa315be32465839fda57
parent22d4556b9a8c7d5367ff0eac33a71c740d9d9f11
Create MR tracking repository in MR processor *synchronously*

Previously the actual repo cloning was scheduled from
MergeRequestProcessor as another background job but processor's code was
assuming that this repository is already there after issuing
CreateTrackingRepositoryCommand. Because there's no simple way to wait
for the completion of other background job from the current job
CreateTrackingRepositoryCommand learned to (optionally) do the cloning
immediately instead of putting it onto the message queue.
app/commands/create_tracking_repository_command.rb
app/processors/merge_request_processor.rb