Commit 74ec5837 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Make submodule update faster with multiprocessing

parent 6a4003bc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -86,8 +86,11 @@ update_repos()
	git worktree add -f $worktree --detach origin/master
	cd $worktree

	local numcpu=`lscpu -p|grep '^[^#]'|wc -l`

	git submodule sync --recursive
	git submodule update --init --recursive
	git submodule update --init --recursive \
		-j $(((numcpu>1)?(numcpu-1):(numcpu)))

	git submodule foreach '
		setting="submodule.${name}.auto-update";