1
This commit is contained in:
parent
a6794da933
commit
67cf82c229
@ -18,10 +18,13 @@ for proj in projects:
|
|||||||
http_url_to_repo = proj['http_url_to_repo']
|
http_url_to_repo = proj['http_url_to_repo']
|
||||||
name = proj['name']
|
name = proj['name']
|
||||||
path = proj['namespace']['path']
|
path = proj['namespace']['path']
|
||||||
|
if name != 'game1008':
|
||||||
|
continue
|
||||||
if not os.path.exists('repository/%s' % path):
|
if not os.path.exists('repository/%s' % path):
|
||||||
os.mkdir('repository/%s' % (path))
|
os.mkdir('repository/%s' % (path))
|
||||||
if not os.path.exists('repository/%s/%s' % (path, name)):
|
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 pull' % (path, name))
|
||||||
os.system('cd repository/%s/%s && git submodule init' % (path, name))
|
os.system('cd repository/%s/%s && git submodule init' % (path, name))
|
||||||
os.system('cd repository/%s/%s && git submodule update' % (path, name))
|
os.system('cd repository/%s/%s && git submodule update' % (path, name))
|
||||||
|
#print('%s/%s' % (path, name))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user