summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/gitsm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py
index 0392e48..2ecea7c 100644
--- a/bitbake/lib/bb/fetch2/gitsm.py
+++ b/bitbake/lib/bb/fetch2/gitsm.py
@@ -131,7 +131,7 @@ class GitSM(Git):
131 os.chdir(ud.destdir) 131 os.chdir(ud.destdir)
132 submodules = self.uses_submodules(ud, d) 132 submodules = self.uses_submodules(ud, d)
133 if submodules: 133 if submodules:
134 runfetchcmd("cp -r " + ud.clonedir + "/modules " + ud.destdir + "/.git/", d) 134 runfetchcmd(ud.basecmd + " checkout " + ud.revisions[ud.names[0]], d)
135 runfetchcmd(ud.basecmd + " submodule init", d) 135 runfetchcmd(ud.basecmd + " submodule init", d)
136 runfetchcmd(ud.basecmd + " submodule update", d) 136 runfetchcmd(ud.basecmd + " submodule update", d)
137 137