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
59356493
Commit
59356493
authored
Nov 09, 2017
by
John Kessenich
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'vulkan-1.1-rc6_LunarG' into 'master'
Fix external update script for GitHub SSH access See merge request !30
parents
a6e55436
ff7fb95e
Show 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 @
59356493
...
@@ -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