Be able to configure the number of threads for git submodules update (#3438)

* make the number of submodule update threads configurable

* change thread number to be a script argument
This commit is contained in:
Javier Honduvilla Coto
2017-01-24 18:55:31 +01:00
committed by Brandon Black
parent 9fe5fe0de2
commit 1ec4db97c2

View File

@@ -51,7 +51,7 @@ SUBMODULES.partition { |submodule| SLOW_SUBMODULES.include?(submodule) }.flatten
submodules.push(submodule) submodules.push(submodule)
end end
8.times do (ARGV.first || 8).to_i.times do
Thread.new { run_thread(submodules, results) } Thread.new { run_thread(submodules, results) }
end end