Skip to content

Commit

Permalink
TUE_SPARSE_CHECKOUT -> TUE_ENV_SPARSE_CHECKOUT
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Apr 29, 2024
1 parent 7b67f83 commit a214cd3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion installer/tue-install-impl.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ function tue-install-ros

local sparse_sub_dir_args
sparse_sub_dir_args=()
[[ ("${CI}" == "true" || "${TUE_SPARSE_CHECKOUT}") && -n "${sub_dir}" ]] && sparse_sub_dir_args=("--sparse-sub-dir=${sub_dir}")
[[ ("${CI}" == "true" || "${TUE_ENV_SPARSE_CHECKOUT}") && -n "${sub_dir}" ]] && sparse_sub_dir_args=("--sparse-sub-dir=${sub_dir}")
tue-install-git "${src}" --target-dir="${repos_dir}" --version="${version}" "${sparse_sub_dir_args[@]}"

if [ -d "$repos_dir" ]
Expand Down
21 changes: 21 additions & 0 deletions setup/tue-env-config.bash
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,27 @@ function tue-env-not-install-doc-depend
echo -e "[tue-env](config) Environment '${tue_env}' set to not install doc dependencies"
}

function tue-env-set-sparse-checkout
{
local option value
option="TUE_ENV_SPARSE_CHECKOUT"
value="true"
_set_export_option "${option}" "${value}" "${tue_env_dir}"/.env/setup/user_setup.bash

echo -e "[tue-env](config) Environment '${tue_env}' set to use sparse checkout"
}

function tue-env-unset-sparse-checkout
{
local option value
option="TUE_ENV_SPARSE_CHECKOUT"
value="false"
_set_export_option "${option}" "${value}" "${tue_env_dir}"/.env/setup/user_setup.bash

echo -e "[tue-env](config) Environment '${tue_env}' unset sparse checkout"

}

function tue-env-set
{
local option value
Expand Down

0 comments on commit a214cd3

Please sign in to comment.