Patchwork [bitbake-devel] gitsm

login
register
mail settings
Submitter Reinhard Thies
Date March 26, 2014, 12:58 p.m.
Message ID <201403261358.41447.Reinhard.Thies@web.de>
Download mbox | patch
Permalink /patch/69267/
State New
Headers show

Comments

Reinhard Thies - March 26, 2014, 12:58 p.m.
Hi,

I am just started to work with gitsm. Maybe I am doing something wrong because 
it wont work until I remove a line in the gitsm.py file.

I have so idea what the line should be for and would appreciate any help.

             runfetchcmd("git submodule update", d)

--
thx
Reinhard

Patch

diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py
index 572b637..06f7fb7 100644
--- a/bitbake/lib/bb/fetch2/gitsm.py
+++ b/bitbake/lib/bb/fetch2/gitsm.py
@@ -68,11 +68,11 @@  class GitSM(Git):
 
     def unpack(self, ud, destdir, d):
         Git.unpack(self, ud, destdir, d)
-        
+
         os.chdir(ud.destdir)
         submodules = self.uses_submodules(ud, d)
         if submodules:
-            runfetchcmd("cp -r " + ud.clonedir + "/modules " + ud.destdir + 
"/.git/", d)
+#            runfetchcmd("cp -r " + ud.clonedir + "/modules " + ud.destdir + 
"/.git/", d)
             runfetchcmd("git submodule init", d)