FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sourcegraph/dev/codeintel-qa/scripts/clone.sh at main · onecommons/sourcegraph · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
onecommons
/
sourcegraph
Public
forked from
sourcegraph/sourcegraph-public-snapshot
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sourcegraph
/
dev
/
codeintel-qa
/
scripts
/
clone.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
20 lines (15 loc) · 388 Bytes
Breadcrumbs
sourcegraph
/
dev
/
codeintel-qa
/
scripts
/
clone.sh
Copy path
File metadata and controls
executable file
·
20 lines (15 loc) · 388 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!
/usr/bin/env bash
set
-eu
cd
"
$(
dirname
"
${BASH_SOURCE[0]}
"
)
/..
"
DATADIR=
$(
realpath
'
./testdata
'
)
REPODIR=
"
${DATADIR}
/repos
"
NAME=
"
$1
"
#
Early-out if there's already a dump file
if
[
-d
"
${REPODIR}
/
${NAME}
"
]
;
then
exit
0
fi
#
Ensure target dir exists
mkdir -p
"
${REPODIR}
"
#
Clone repo
pushd
"
${REPODIR}
"
||
exit
1
git clone
"
https://github.com/sourcegraph-testing/
${NAME}
.git
"
Back
|
FazBrowse Home
|
New Git URL