Skip to content
Snippets Groups Projects
Commit dcf022f4 authored by Julian Oes's avatar Julian Oes Committed by Lorenz Meier
Browse files

Submodules: use submodule sync --recursive

This should make changes where the submodule repository changes trouble
free for users.
parent b1a890f0
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,7 @@ clean:
@rm -rf build_*/
@(cd NuttX && git clean -d -f -x)
@(cd src/modules/uavcan/libuavcan && git clean -d -f -x)
@(git submodule sync)
@(git submodule sync --recursive)
# targets handled by cmake
cmake_targets = test upload package package_source debug debug_tui debug_ddd debug_io debug_io_tui debug_io_ddd check_weak \
......
......@@ -28,7 +28,8 @@ if [ -f $1"/.git" ];
echo -e " *******************************************************************************"
echo -e " * \033[31mIF YOU DID NOT CHANGE THIS FILE (OR YOU DON'T KNOW WHAT A SUBMODULE IS):\033[0m *"
echo -e " * \033[31mHit 'u' and <ENTER> to update ALL submodules and resolve this.\033[0m *"
echo -e " * (performs \033[94mgit submodule update --init --recursive\033[0m) *"
echo -e " * (performs \033[94mgit submodule sync --recursive\033[0m *"
echo -e " * and \033[94mgit submodule update --init --recursive\033[0m ) *"
echo -e " *******************************************************************************"
echo ""
echo ""
......@@ -44,6 +45,7 @@ if [ -f $1"/.git" ];
else
if [ "$user_cmd" == "u" ]
then
git submodule sync --recursive
git submodule update --init --recursive
echo "Submodule fixed, continuing build.."
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment