From 7e3405a9ac91a41908a8f810497db4972c3624c0 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 15 Sep 2018 10:11:31 +0800 Subject: [PATCH] 1 --- gitlab/githelper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitlab/githelper.py b/gitlab/githelper.py index ccd232b..c885f53 100644 --- a/gitlab/githelper.py +++ b/gitlab/githelper.py @@ -23,3 +23,5 @@ for proj in projects: if not os.path.exists('repository/' + path + '/' + name): os.system('cd repository/' + path + ' && git clone ' + http_url_to_repo) os.system('cd repository/' + path + ' && git pull') + os.system('cd repository/' + path + ' && git submodule init') + os.system('cd repository/' + path + ' && git submodule update')