From 67cf82c229ef554649cd261b1bcf7c0f15618a47 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 15 Sep 2018 11:05:35 +0800 Subject: [PATCH] 1 --- gitlab/githelper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitlab/githelper.py b/gitlab/githelper.py index a28132b..ded8189 100644 --- a/gitlab/githelper.py +++ b/gitlab/githelper.py @@ -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))