summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2013-02-04 10:58:48 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-02-04 10:58:48 +0000
commit91f011ab0df9e1aa215e39b424c9ce2614bae50e (patch)
tree15c9c9b087d8502f4b560fd3afff0a74300137fb
parent57bd7b717ba830753b5c6d82bb84d38047dce637 (diff)
parent87b9d9b4f2b9540fdd23a2b13af622d04a15269a (diff)
downloadgit-repo-91f011ab0df9e1aa215e39b424c9ce2614bae50e.tar.gz
Merge "Don't exit with error on HTTP 403 when downloading clone bundle"v1.12.1
-rwxr-xr-xrepo2
1 files changed, 1 insertions, 1 deletions
diff --git a/repo b/repo
index ac1eca8f..6b374f72 100755
--- a/repo
+++ b/repo
@@ -428,7 +428,7 @@ def _DownloadBundle(url, local, quiet):
428 try: 428 try:
429 r = urllib.request.urlopen(url) 429 r = urllib.request.urlopen(url)
430 except urllib.error.HTTPError as e: 430 except urllib.error.HTTPError as e:
431 if e.code == 404: 431 if e.code in [403, 404]:
432 return False 432 return False
433 print('fatal: Cannot get %s' % url, file=sys.stderr) 433 print('fatal: Cannot get %s' % url, file=sys.stderr)
434 print('fatal: HTTP error %s' % e.code, file=sys.stderr) 434 print('fatal: HTTP error %s' % e.code, file=sys.stderr)