mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
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:
committed by
Brandon Black
parent
9fe5fe0de2
commit
1ec4db97c2
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user