Skip to content

Commit

Permalink
Bootstrap should sync submodules. (#23095)
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 #23059
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Feb 7, 2023
1 parent 2c94e32 commit 5536049
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 5536049

Please sign in to comment.