Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
7c0272f4
Commit
7c0272f4
authored
Nov 27, 2018
by
Guilhem Saurel
Browse files
use hrp2-14 to clone on github
parent
33519376
Pipeline
#1934
passed with stages
in 1 minute and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dashboard/settings.py
View file @
7c0272f4
...
...
@@ -160,3 +160,4 @@ RAINBOARD_GITS = RAINBOARD_DATA / 'repositories'
RAINBOARD_RPKG
=
RAINBOARD_DATA
/
'robotpkg'
PRIVATE_REGISTRY
=
'gepgitlab.laas.fr:4567'
PUBLIC_REGISTRY
=
'eur0c.laas.fr:5000'
GITHUB_USER
=
'hrp2-14'
rainboard/models.py
View file @
7c0272f4
...
...
@@ -450,6 +450,8 @@ class Repo(TimeStampedModel):
def
get_clone_url
(
self
):
if
self
.
forge
.
source
==
SOURCES
.
gitlab
:
return
self
.
clone_url
.
replace
(
'://'
,
f
'://gitlab-ci-token:
{
self
.
forge
.
token
}
@'
)
if
self
.
forge
.
source
==
SOURCES
.
github
:
return
self
.
clone_url
.
replace
(
'://'
,
f
'://
{
settings
.
GITHUB_USER
}
:
{
self
.
forge
.
token
}
@'
)
return
self
.
clone_url
def
git_remote
(
self
):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment