summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/gitsm.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/gitsm.py')
-rw-r--r--bitbake/lib/bb/fetch2/gitsm.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py
index 2ecea7c..752f1d3 100644
--- a/bitbake/lib/bb/fetch2/gitsm.py
+++ b/bitbake/lib/bb/fetch2/gitsm.py
@@ -110,8 +110,7 @@ class GitSM(Git):
110 os.chdir(tmpclonedir) 110 os.chdir(tmpclonedir)
111 runfetchcmd(ud.basecmd + " reset --hard", d) 111 runfetchcmd(ud.basecmd + " reset --hard", d)
112 runfetchcmd(ud.basecmd + " checkout " + ud.revisions[ud.names[0]], d) 112 runfetchcmd(ud.basecmd + " checkout " + ud.revisions[ud.names[0]], d)
113 runfetchcmd(ud.basecmd + " submodule init", d) 113 runfetchcmd(ud.basecmd + " submodule update --init --recursive", d)
114 runfetchcmd(ud.basecmd + " submodule update", d)
115 self._set_relative_paths(tmpclonedir) 114 self._set_relative_paths(tmpclonedir)
116 runfetchcmd("sed " + gitdir + "/config -i -e 's/bare.*=.*false/bare = true/'", d) 115 runfetchcmd("sed " + gitdir + "/config -i -e 's/bare.*=.*false/bare = true/'", d)
117 os.rename(gitdir, ud.clonedir,) 116 os.rename(gitdir, ud.clonedir,)
@@ -132,6 +131,4 @@ class GitSM(Git):
132 submodules = self.uses_submodules(ud, d) 131 submodules = self.uses_submodules(ud, d)
133 if submodules: 132 if submodules:
134 runfetchcmd(ud.basecmd + " checkout " + ud.revisions[ud.names[0]], d) 133 runfetchcmd(ud.basecmd + " checkout " + ud.revisions[ud.names[0]], d)
135 runfetchcmd(ud.basecmd + " submodule init", d) 134 runfetchcmd(ud.basecmd + " submodule update --init --recursive", d)
136 runfetchcmd(ud.basecmd + " submodule update", d)
137