Skip to content

Commit

Permalink
Add same git clone options that we used to have in gitlab-ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
alee-ntap committed Dec 13, 2023
1 parent 94b55d9 commit 6df61c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/bin/build_source
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6df61c9

Please sign in to comment.