diff options
Diffstat (limited to 'builder/build-initramfs.sh')
-rwxr-xr-x | builder/build-initramfs.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/builder/build-initramfs.sh b/builder/build-initramfs.sh index 28f6b8af..66dbf172 100755 --- a/builder/build-initramfs.sh +++ b/builder/build-initramfs.sh @@ -45,10 +45,11 @@ if ! [[ -d "$_needed_location" ]]; then path="$(git config -f .gitmodules --get submodule.${mod}.path)" branch="$(git config -f .gitmodules --get submodule.${mod}.branch)" commit="$(git submodule status $path | grep -oE '[0-9a-f]{40}')" - [ "$mod" = "dnbd3" ] && depth_arg=("--shallow-since" "2019-02-12") - [ "$mod" = "rebash" ] && depth_arg=("--shallow-since" "2016-11-30") - [ "$mod" = "qemu-xmount" ] && depth_arg=("--shallow-since" "2016-01-01") - [ "$mod" = "xmount" ] && depth_arg=("--depth" "1") + depth_arg=("--shallow-since") + [ "$mod" = "dnbd3" ] && depth_arg+=("2019-02-12") + [ "$mod" = "rebash" ] && depth_arg+=("2016-11-30") + [ "$mod" = "qemu-xmount" ] && depth_arg+=("2016-01-01") + [ "$mod" = "xmount" ] && depth_arg+=("2015-11-05") git clone -n --no-tags "${depth_arg[@]}" --branch "$branch" "$url" "$path" pushd "$path" git checkout "$commit" |