From 3c6e67bc55693feee5f772fd198e0a9bfc80cc8d Mon Sep 17 00:00:00 2001 From: alee-ntap <142503442+alee-ntap@users.noreply.github.com> Date: Wed, 13 Dec 2023 13:29:41 +0100 Subject: [PATCH] Add same git clone options that we used to have in gitlab-ci (#66) --- 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 3ca23c1..349447c 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