Skip to content
Snippets Groups Projects
Unverified Commit 38e8cca6 authored by teor's avatar teor
Browse files

scripts/git: Add TOR_EXTRA_CLONE_ARGS for git clone

When running git-setup-dirs.sh.

Part of 32347.
parent 995618ec
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,8 @@ function usage()
echo " (current: $GITHUB_PULL)"
echo " TOR_GITHUB_PUSH: the tor-github remote push URL"
echo " (current: $GITHUB_PUSH)"
echo " TOR_EXTRA_CLONE_ARGS: extra arguments to git clone"
echo " (current: $TOR_EXTRA_CLONE_ARGS)"
echo " we recommend that you set these env vars in your ~/.profile"
}
......@@ -288,7 +290,7 @@ function goto_dir
# If the directory already exists: fail if $USE_EXISTING is 0, otherwise skip.
function clone_repo
{
local cmd="git clone '$1' '$2'"
local cmd="git clone $TOR_EXTRA_CLONE_ARGS '$1' '$2'"
printf " %s Cloning %s into %s..." "$MARKER" "$1" "$2"
local check_cmd="[ ! -d '$2' ]"
msg=$( eval "$check_cmd" 2>&1 )
......
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