Commit 416286e2 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Make submodule checks recursive

parent 74ec5837
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -92,12 +92,12 @@ update_repos()
	git submodule update --init --recursive \
		-j $(((numcpu>1)?(numcpu-1):(numcpu)))

	git submodule foreach '
	git submodule foreach --recursive '
		setting="submodule.${name}.auto-update";
		branch=`git config -f ~/.gitmodules ${setting}`;
		git checkout origin/${branch:-master} || exit 1
		cd ${toplevel};
		git add ${path}'
		(cd ${toplevel}; exec git add ${path})
		'

	local updates="`git status --short -uno`"
	if [ -n "$updates" ]; then