From 1ec4db97c2b71e7c712d3b8dc7f19f473633650e Mon Sep 17 00:00:00 2001 From: Javier Honduvilla Coto Date: Tue, 24 Jan 2017 18:55:31 +0100 Subject: [PATCH] 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 --- script/fast-submodule-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/fast-submodule-update b/script/fast-submodule-update index dff1be7d..bf10301b 100755 --- a/script/fast-submodule-update +++ b/script/fast-submodule-update @@ -51,7 +51,7 @@ SUBMODULES.partition { |submodule| SLOW_SUBMODULES.include?(submodule) }.flatten submodules.push(submodule) end -8.times do +(ARGV.first || 8).to_i.times do Thread.new { run_thread(submodules, results) } end