mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Merge "Don't exit with error on HTTP 403 when downloading clone bundle"
This commit is contained in:
commit
91f011ab0d
2
repo
2
repo
@ -428,7 +428,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 == 404:
|
if e.code in [403, 404]:
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user