diff options
author | jandob | 2016-02-09 13:30:32 +0100 |
---|---|---|
committer | jandob | 2016-02-09 13:30:32 +0100 |
commit | ee5fbca85eb4ef2d57882809b24c3355d0a35492 (patch) | |
tree | 5536b29274cb59fefe686286068449941585b85d /builder | |
parent | Sync. (diff) | |
download | systemd-init-ee5fbca85eb4ef2d57882809b24c3355d0a35492.tar.gz systemd-init-ee5fbca85eb4ef2d57882809b24c3355d0a35492.tar.xz systemd-init-ee5fbca85eb4ef2d57882809b24c3355d0a35492.zip |
fix submodule checkout
Diffstat (limited to 'builder')
-rwxr-xr-x | builder/build-initramfs.sh | 7 |
1 files changed, 6 insertions, 1 deletions
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" \ |