From dbf5897cf2762b6d3c19f87490822425e3a11d09 Mon Sep 17 00:00:00 2001 From: Joe Handzik Date: Thu, 9 Apr 2015 17:18:28 -0500 Subject: [PATCH] Try the ceph.com mirror first. If that fails, retry with the github url and the https protocol. --- vendor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- 2.47.3