From: Joe Handzik Date: Thu, 9 Apr 2015 22:18:28 +0000 (-0500) Subject: Try the ceph.com mirror first. If that fails, retry with the github url and the https... X-Git-Tag: v1.5.24~13^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dbf5897cf2762b6d3c19f87490822425e3a11d09;p=ceph-deploy.git Try the ceph.com mirror first. If that fails, retry with the github url and the https protocol. --- diff --git a/vendor.py b/vendor.py index f56f1c3..ef3c52c 100644 --- a/vendor.py +++ b/vendor.py @@ -66,7 +66,10 @@ def vendor_library(name, version, cmd=None): run(['rm', '-rf', vendor_dest]) if not path.exists(vendor_dest): - run(['git', 'clone', 'https://github.com/ceph/%s.git' % name]) + rc = run(['git', 'clone', 'git://ceph.com/%s' % name]) + if (rc): + print "%s: git clone failed using ceph.com url with rc %s, trying github.com" % (path.basename(__file__), rc) + run(['git', 'clone', 'https://github.com/ceph/%s.git' % name]) os.chdir(vendor_src) run(['git', 'checkout', version]) if cmd: