Skip to content

Commit

Permalink
Bootstrap should sync submodules.
Browse files Browse the repository at this point in the history
When submodule URLs change, re-bootstrap will fail unless something does "git
submodule sync".  We should just do that as part of bootstrap, instead of
assuming that developers know to do it.

Fixes project-chip#23059
  • Loading branch information
bzbarsky-apple committed Oct 10, 2022
1 parent 119cdf5 commit d85d7e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ _bootstrap_or_activate() {

if [ "$_BOOTSTRAP_NAME" = "bootstrap.sh" ] ||
[ ! -f "$_CHIP_ROOT/third_party/pigweed/repo/pw_env_setup/util.sh" ]; then
# Make sure our submodule remotes are correct for this revision.
git submodule sync --recursive
git submodule update --init
fi

Expand Down

0 comments on commit d85d7e8

Please sign in to comment.