Skip to content

Commit

Permalink
[ci] clone with submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelaiwo committed Oct 22, 2024
1 parent cd8b66b commit df41509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build/common-functions
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function git_clone_or_update() {
local branch="$3"

if [[ ! -e "${destination}/.git" ]]; then
git clone $([ "${branch}x" != "x" ] && echo "--depth 1 -b ${branch}" || echo "") "$url" "$destination"
git clone --recurse-submodules $([ "${branch}x" != "x" ] && echo "--depth 1 -b ${branch}" || echo "") "$url" "$destination"
else
pushd "$destination"
git pull
Expand Down

0 comments on commit df41509

Please sign in to comment.