Commit 9cfb35b3 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Make submodules clones shallow

parent 68408d9d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ update_worktree()
	local original=`git rev-parse HEAD`
	if git merge --ff --no-edit $upstream origin/master; then
		git submodule sync --recursive
		git submodule update --init --recursive ${GIT_JOBS}
		git submodule update --init --recursive --depth=1 ${GIT_JOBS}
	else
		git reset $original
	fi
@@ -103,7 +103,7 @@ update_repos()
	cd $worktree

	git submodule sync --recursive
	git submodule update --init --recursive ${GIT_JOBS}
	git submodule update --init --recursive --depth=1 ${GIT_JOBS}

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