From ee5fbca85eb4ef2d57882809b24c3355d0a35492 Mon Sep 17 00:00:00 2001 From: jandob Date: Tue, 9 Feb 2016 13:30:32 +0100 Subject: fix submodule checkout --- builder/build-initramfs.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'builder') diff --git a/builder/build-initramfs.sh b/builder/build-initramfs.sh index 6a956a7f..2b0f9765 100755 --- a/builder/build-initramfs.sh +++ b/builder/build-initramfs.sh @@ -37,7 +37,12 @@ if ! [[ -d "$_needed_location" ]]; then git://git.openslx.org/openslx-ng/systemd-init.git \ "$_temporary_repository_location" pushd "$_temporary_repository_location" - git submodule update --init --remote --depth 1 + git submodule init + git submodule foreach ' + branch="$(git config -f $toplevel/.gitmodules submodule.$name.branch)" + git clone --depth 1 --branch $branch + ' + git submodule update --remote popd cp --recursive \ "${_temporary_repository_location}/builder/dnbd3-rootfs" \ -- cgit v1.2.3-55-g7522