# TODO: make sure that repo is not cloned for every test. it should
# happen only once.
- remoteurl = 'git://git.ceph.com/xfstests-dev.git'
+ remoteurl = 'https://git.ceph.com/xfstests-dev.git'
self.repo_path = self.mount_a.client_remote.mkdtemp(suffix=
'xfstests-dev')
- self.mount_a.run_shell(['git', 'archive', '--remote=' + remoteurl,
- 'HEAD', run.Raw('|'),
- 'tar', '-C', self.repo_path, '-x', '-f', '-'])
+ self.mount_a.run_shell(['git', 'clone', remoteurl, '--depth', '1',
+ self.repo_path])
def get_admin_key(self):
import configparser
retry() {
rm -rf ffsb
# double the timeout value
- timeout 3600 git clone git://git.ceph.com/ffsb.git --depth 1
+ timeout 3600 git clone https://git.ceph.com/ffsb.git --depth 1
}
rm -rf ffsb
-timeout 1800 git clone git://git.ceph.com/ffsb.git --depth 1
+timeout 1800 git clone https://git.ceph.com/ffsb.git --depth 1
trap - EXIT
cd ffsb