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 Sep 30, 2024
1 parent 93a4929 commit 8c3a75f
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 8c3a75f

Please sign in to comment.