Просмотр исходного кода

Merge "Don't exit with error on HTTP 401 when downloading clone bundle"

Conley Owens 11 лет назад
Родитель
Сommit
2086004261
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      repo

+ 1 - 1
repo

@@ -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 [403, 404]:
+      if e.code in [401, 403, 404]:
         return False
       _print('fatal: Cannot get %s' % url, file=sys.stderr)
       _print('fatal: HTTP error %s' % e.code, file=sys.stderr)