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: