mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
FBT recurse submodules
This commit is contained in:
2
fbt
2
fbt
@@ -29,7 +29,7 @@ if [ -z "$FBT_NO_SYNC" ]; then
|
|||||||
echo "\".git\" directory not found, please clone repo via \"git clone\"";
|
echo "\".git\" directory not found, please clone repo via \"git clone\"";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
git submodule update --init --jobs "$N_GIT_THREADS";
|
git submodule update --init --recursive --jobs "$N_GIT_THREADS";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$SCONS_EP $SCONS_DEFAULT_FLAGS "$@"
|
$SCONS_EP $SCONS_DEFAULT_FLAGS "$@"
|
||||||
|
|||||||
2
fbt.cmd
2
fbt.cmd
@@ -5,7 +5,7 @@ set SCONS_EP=python -m SCons
|
|||||||
|
|
||||||
if [%FBT_NO_SYNC%] == [] (
|
if [%FBT_NO_SYNC%] == [] (
|
||||||
if exist ".git" (
|
if exist ".git" (
|
||||||
git submodule update --init --depth 1 --jobs %NUMBER_OF_PROCESSORS%
|
git submodule update --init --recursive --depth 1 --jobs %NUMBER_OF_PROCESSORS%
|
||||||
) else (
|
) else (
|
||||||
echo Not in a git repo, please clone with "git clone"
|
echo Not in a git repo, please clone with "git clone"
|
||||||
exit /b 1
|
exit /b 1
|
||||||
|
|||||||
Reference in New Issue
Block a user