Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
38e8cca6
Unverified
Commit
38e8cca6
authored
5 years ago
by
teor
Browse files
Options
Downloads
Patches
Plain Diff
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
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/git/git-setup-dirs.sh
+3
-1
3 additions, 1 deletion
scripts/git/git-setup-dirs.sh
with
3 additions
and
1 deletion
scripts/git/git-setup-dirs.sh
+
3
−
1
View file @
38e8cca6
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment