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
6713d8b1
Commit
6713d8b1
authored
Sep 11, 2015
by
Matthias Putz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: rescue if https url for init fails due to ssl handshake failure
parent
3568b211
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
git_config.py
git_config.py
+6
-0
No files found.
git_config.py
View file @
6713d8b1
...
@@ -629,7 +629,13 @@ class Remote(object):
...
@@ -629,7 +629,13 @@ class Remote(object):
else
:
else
:
try
:
try
:
info_url
=
u
+
'ssh_info'
info_url
=
u
+
'ssh_info'
from
trace
import
Trace
Trace
(
"urlopen
%
s"
%
info_url
)
try
:
info
=
urllib
.
request
.
urlopen
(
info_url
)
.
read
()
info
=
urllib
.
request
.
urlopen
(
info_url
)
.
read
()
except
Exception
:
info
=
'NOT_AVAILABLE'
if
info
==
'NOT_AVAILABLE'
or
'<'
in
info
:
if
info
==
'NOT_AVAILABLE'
or
'<'
in
info
:
# If `info` contains '<', we assume the server gave us some sort
# If `info` contains '<', we assume the server gave us some sort
# of HTML response back, like maybe a login page.
# of HTML response back, like maybe a login page.
...
...
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