Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
git-repo
Project
Project
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
linux-tools
git-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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
git_config.py
git_config.py
+7
-1
No files found.
git_config.py
View file @
6713d8b1
...
...
@@ -629,7 +629,13 @@ class Remote(object):
else
:
try
:
info_url
=
u
+
'ssh_info'
info
=
urllib
.
request
.
urlopen
(
info_url
)
.
read
()
from
trace
import
Trace
Trace
(
"urlopen
%
s"
%
info_url
)
try
:
info
=
urllib
.
request
.
urlopen
(
info_url
)
.
read
()
except
Exception
:
info
=
'NOT_AVAILABLE'
if
info
==
'NOT_AVAILABLE'
or
'<'
in
info
:
# If `info` contains '<', we assume the server gave us some sort
# 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