Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
repo
Overview
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
YongjieWang
repo
Commits
91a7855d
Commit
91a7855d
authored
Oct 02, 2015
by
Matthias Putz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: fixed ssh review url handling
parent
3f6c864f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
git_config.py
git_config.py
+2
-2
No files found.
git_config.py
View file @
91a7855d
...
...
@@ -607,7 +607,7 @@ class Remote(object):
u
=
self
.
review
if
u
.
startswith
(
'persistent-'
):
u
=
u
[
len
(
'persistent-'
):]
if
u
.
split
(
':'
)[
0
]
not
in
(
'http'
,
'https'
,
'sso'
):
if
u
.
split
(
':'
)[
0
]
not
in
(
'http'
,
'https'
,
'sso'
,
'ssh'
):
u
=
'http://
%
s'
%
u
if
u
.
endswith
(
'/Gerrit'
):
u
=
u
[:
len
(
u
)
-
len
(
'/Gerrit'
)]
...
...
@@ -623,7 +623,7 @@ class Remote(object):
host
,
port
=
os
.
environ
[
'REPO_HOST_PORT_INFO'
]
.
split
()
self
.
_review_url
=
self
.
_SshReviewUrl
(
userEmail
,
host
,
port
)
REVIEW_CACHE
[
u
]
=
self
.
_review_url
elif
u
.
startswith
(
'sso:'
):
elif
u
.
startswith
(
'sso:'
)
or
u
.
startswith
(
'ssh:'
)
:
self
.
_review_url
=
u
# Assume it's right
REVIEW_CACHE
[
u
]
=
self
.
_review_url
else
:
...
...
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