Explorar o código

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

Conley Owens %!s(int64=11) %!d(string=hai) anos
pai
achega
2086004261
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)