From 402e2e4de31e2cd51359818549bea5bde9d42f8c Mon Sep 17 00:00:00 2001 From: hedger Date: Mon, 16 Oct 2023 21:11:15 +0400 Subject: [PATCH] fbt: renamed FBT_SHALLOW to FBT_GIT_SUBMODULE_SHALLOW --- fbt | 4 ++-- fbt.cmd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fbt b/fbt index 643ee4d17a2..e6133d07b17 100755 --- a/fbt +++ b/fbt @@ -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"; @@ -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 diff --git a/fbt.cmd b/fbt.cmd index d03d77f4c7f..20432be1c53 100644 --- a/fbt.cmd +++ b/fbt.cmd @@ -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" (