[17/20] Git: support submodules(not perfect)

Submitted by Yann Diorcet on Aug. 6, 2014, 7:16 p.m.

Details

Message ID 1407352611-7652-17-git-send-email-diorcet.yann@gmail.com
State New
Delegated to: Esben Haabendal
Headers show

Commit Message

Yann Diorcet Aug. 6, 2014, 7:16 p.m.
---
 lib/oelite/fetch/git.py | 4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

diff --git a/lib/oelite/fetch/git.py b/lib/oelite/fetch/git.py
index 1559d8d..1b71b1c 100644
--- a/lib/oelite/fetch/git.py
+++ b/lib/oelite/fetch/git.py
@@ -262,6 +262,10 @@  class GitFetcher():
         if not oelite.util.shcmd(cmd, dir=self.dest):
             print "Error: git checkout failed"
             return False
+        cmd = "git submodule update --init"
+        if not oelite.util.shcmd(cmd, dir=self.dest):
+            print "Error: git clone failed"
+            return False
         return True
 
     def mirror(self, mirror=os.getcwd()):