Skip to content

Commit

Permalink
[script] fix issue that historic commits not found in --depth 1 clone…
Browse files Browse the repository at this point in the history
…d repo.
  • Loading branch information
EskoDijk committed Jun 11, 2024
1 parent 93e3d0f commit d115728
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions script/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@ go_install()
get_openthread()
{
if [[ ! -f ./openthread/script/bootstrap ]]; then
git submodule update --init --recursive --depth 1
fi
}

get_openthread_versions()
{
if [[ ! -f ./openthread/script/bootstrap ]]; then
# --depth 1 is not used here, due to need to build historic commits for OT nodes.
git submodule update --init --recursive
fi
}
Expand Down Expand Up @@ -109,7 +103,7 @@ build_openthread_br()

build_openthread_versions()
{
get_openthread_versions
get_openthread
install_openthread_buildtools
(
cd ot-rfsim
Expand Down

0 comments on commit d115728

Please sign in to comment.