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
1daad89f
Commit
1daad89f
authored
Dec 07, 2016
by
James Helferty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: rescue if https url for init fails with 406
parent
f9270f2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
repo
repo
+1
-1
No files found.
repo
View file @
1daad89f
...
@@ -556,7 +556,7 @@ def _DownloadBundle(url, local, quiet):
...
@@ -556,7 +556,7 @@ def _DownloadBundle(url, local, quiet):
try
:
try
:
r
=
urllib
.
request
.
urlopen
(
url
)
r
=
urllib
.
request
.
urlopen
(
url
)
except
urllib
.
error
.
HTTPError
as
e
:
except
urllib
.
error
.
HTTPError
as
e
:
if
e
.
code
in
[
401
,
403
,
404
]:
if
e
.
code
in
[
401
,
403
,
404
,
406
]:
return
False
return
False
_print
(
'fatal: Cannot get
%
s'
%
url
,
file
=
sys
.
stderr
)
_print
(
'fatal: Cannot get
%
s'
%
url
,
file
=
sys
.
stderr
)
_print
(
'fatal: HTTP error
%
s'
%
e
.
code
,
file
=
sys
.
stderr
)
_print
(
'fatal: HTTP error
%
s'
%
e
.
code
,
file
=
sys
.
stderr
)
...
...
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