Skip to content

Commit

Permalink
fbt: renamed FBT_SHALLOW to FBT_GIT_SUBMODULE_SHALLOW
Browse files Browse the repository at this point in the history
  • Loading branch information
hedger committed Oct 16, 2023
1 parent aafb370 commit 402e2e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FBT_NOENV="${FBT_NOENV:-""}";
FBT_NO_SYNC="${FBT_NO_SYNC:-""}";
FBT_TOOLCHAIN_PATH="${FBT_TOOLCHAIN_PATH:-$SCRIPT_PATH}";
FBT_VERBOSE="${FBT_VERBOSE:-""}";
FBT_SHALLOW="${FBT_SHALLOW:-""}";
FBT_GIT_SUBMODULE_SHALLOW="${FBT_GIT_SUBMODULE_SHALLOW:-""}";

if [ -z "$FBT_NOENV" ]; then
FBT_VERBOSE="$FBT_VERBOSE" . "$SCRIPT_PATH/scripts/toolchain/fbtenv.sh";
Expand All @@ -32,7 +32,7 @@ if [ -z "$FBT_NO_SYNC" ]; then
exit 1;
fi
_FBT_CLONE_FLAGS="--jobs $N_GIT_THREADS";
if [ ! -z "$FBT_SHALLOW" ]; then
if [ ! -z "$FBT_GIT_SUBMODULE_SHALLOW" ]; then
_FBT_CLONE_FLAGS="$_FBT_CLONE_FLAGS --depth 1";
fi

Expand Down
2 changes: 1 addition & 1 deletion fbt.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set SCONS_EP=python -m SCons

if [%FBT_NO_SYNC%] == [] (
set _FBT_CLONE_FLAGS=--jobs %NUMBER_OF_PROCESSORS%
if not [%FBT_SHALLOW%] == [] (
if not [%FBT_GIT_SUBMODULE_SHALLOW%] == [] (
set _FBT_CLONE_FLAGS=%_FBT_CLONE_FLAGS% --depth 1
)
if exist ".git" (
Expand Down

0 comments on commit 402e2e4

Please sign in to comment.