This commit is contained in:
aozhiwei 2018-09-15 11:05:35 +08:00
parent a6794da933
commit 67cf82c229

View File

@ -18,10 +18,13 @@ for proj in projects:
http_url_to_repo = proj['http_url_to_repo']
name = proj['name']
path = proj['namespace']['path']
if name != 'game1008':
continue
if not os.path.exists('repository/%s' % path):
os.mkdir('repository/%s' % (path))
if not os.path.exists('repository/%s/%s' % (path, name)):
os.system('cd repository/%s/%s && git clone %s' % (path, name, http_url_to_repo))
os.system('cd repository/%s && git clone %s' % (path, http_url_to_repo))
os.system('cd repository/%s/%s && git pull' % (path, name))
os.system('cd repository/%s/%s && git submodule init' % (path, name))
os.system('cd repository/%s/%s && git submodule update' % (path, name))
#print('%s/%s' % (path, name))