def clone_repo():
require('srvr', 'path', 'within_virtualenv', provided_by=env.servers)
with quiet():
if run('ls {}'.format(os.path.join(env.path, '.git'))).succeeded:
print(green(('repository at'
' [{}] exists').format(env.path)))
return
print(yellow('cloning repository to [{}]'.format(env.path)))
run('git clone --recursive {} {}'.format(REPOSITORY, env.path))
评论列表
文章目录