Ignore clone.bundle on HTTP 501, i.e. Not Implemented

Change-Id: I03ee003d3bd5d0684a31bdf7961a55a511dfa0e2
This commit is contained in:
John Törnblom 2015-08-12 20:12:51 +02:00
parent 2635c0e3b6
commit d3ddcdbd8a

2
repo
View File

@ -462,7 +462,7 @@ def _DownloadBundle(url, local, quiet):
try:
r = urllib.request.urlopen(url)
except urllib.error.HTTPError as e:
if e.code in [401, 403, 404]:
if e.code in [401, 403, 404, 501]:
return False
_print('fatal: Cannot get %s' % url, file=sys.stderr)
_print('fatal: HTTP error %s' % e.code, file=sys.stderr)