From 6df61c9abbadc7773c98a21f4cb92a425fe00f29 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 13 Dec 2023 12:00:11 +0100 Subject: [PATCH] Add same git clone options that we used to have in gitlab-ci. --- container/bin/build_source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/bin/build_source b/container/bin/build_source index 54fa9ba..f5930e8 100755 --- a/container/bin/build_source +++ b/container/bin/build_source @@ -109,7 +109,7 @@ apt_source() ( git_source() ( IFS='#' read -r url ref <<< "$1" - git clone "$url" src.git + git clone --jobs $(nproc) --shallow-submodules --recurse-submodules "$url" src.git git -C src.git archive --prefix src/ "$(get_git_tag)" > orig.tar rm -rf src.git tar -x < orig.tar