Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
ff7fb95e
Commit
ff7fb95e
authored
Nov 01, 2017
by
Mike Weiblen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix external update script for GitHub SSH access
Modify the update_glslang_sources_khr.py script to use SSH protocol for GitLab rather than HTTPS
parent
a6e55436
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
update_glslang_sources_khr.py
update_glslang_sources_khr.py
+5
-8
No files found.
update_glslang_sources_khr.py
View file @
ff7fb95e
...
@@ -28,9 +28,9 @@ import sys
...
@@ -28,9 +28,9 @@ import sys
KNOWN_GOOD_FILE
=
'known_good_khr.json'
KNOWN_GOOD_FILE
=
'known_good_khr.json'
# Maps a site name to its host
name
.
# Maps a site name to its host
URL
.
SITE_TO_HOST
=
{
'github'
:
'
github.com
'
,
SITE_TO_HOST
=
{
'github'
:
'
https://github.com/
'
,
'gitlab'
:
'git
lab.khronos.org
'
}
'gitlab'
:
'git
@gitlab.khronos.org:
'
}
VERBOSE
=
True
VERBOSE
=
True
...
@@ -83,14 +83,11 @@ class GoodCommit(object):
...
@@ -83,14 +83,11 @@ class GoodCommit(object):
self
.
subdir
=
json
[
'subdir'
]
if
(
'subdir'
in
json
)
else
'.'
self
.
subdir
=
json
[
'subdir'
]
if
(
'subdir'
in
json
)
else
'.'
self
.
commit
=
json
[
'commit'
]
self
.
commit
=
json
[
'commit'
]
def
GetUrl
(
self
,
style
=
'https'
):
def
GetUrl
(
self
):
"""Returns the URL for the repository."""
"""Returns the URL for the repository."""
host
=
SITE_TO_HOST
[
self
.
site
]
host
=
SITE_TO_HOST
[
self
.
site
]
sep
=
'/'
if
(
style
is
'https'
)
else
':'
return
'{host}{subrepo}'
.
format
(
return
'{style}://{host}{sep}{subrepo}'
.
format
(
style
=
style
,
host
=
host
,
host
=
host
,
sep
=
sep
,
subrepo
=
self
.
subrepo
)
subrepo
=
self
.
subrepo
)
def
AddRemote
(
self
):
def
AddRemote
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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