summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2015-03-11 17:25:45 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-03-11 17:25:45 +0000
commit20860042617d43ed192d60659cd92c71ea251519 (patch)
tree9f4e6c6b91e37bd1b254c7383b2796ffd709733b
parent0402cd882a05b22ddb4d3e10bf816f5165e1e11e (diff)
parent2338788050bfacb64ebb23381b9874a9a7fde60c (diff)
downloadgit-repo-20860042617d43ed192d60659cd92c71ea251519.tar.gz
Merge "Don't exit with error on HTTP 401 when downloading clone bundle"
-rwxr-xr-xrepo2
1 files changed, 1 insertions, 1 deletions
diff --git a/repo b/repo
index 6338483b..f12354a4 100755
--- a/repo
+++ b/repo
@@ -462,7 +462,7 @@ def _DownloadBundle(url, local, quiet):
462 try: 462 try:
463 r = urllib.request.urlopen(url) 463 r = urllib.request.urlopen(url)
464 except urllib.error.HTTPError as e: 464 except urllib.error.HTTPError as e:
465 if e.code in [403, 404]: 465 if e.code in [401, 403, 404]:
466 return False 466 return False
467 _print('fatal: Cannot get %s' % url, file=sys.stderr) 467 _print('fatal: Cannot get %s' % url, file=sys.stderr)
468 _print('fatal: HTTP error %s' % e.code, file=sys.stderr) 468 _print('fatal: HTTP error %s' % e.code, file=sys.stderr)