[bitbake-devel] [PATCH] fetch2: Checkout to correct ref begore init and update submodules
eu at felipetonello.com
eu at felipetonello.com
Mon Jul 6 16:05:43 UTC 2015
From: "Felipe F. Tonello" <eu at felipetonello.com>
This is nessary when specified branch with submodules is different then
default (master) branch.
Signed-off-by: Felipe F. Tonello <eu at felipetonello.com>
---
lib/bb/fetch2/gitsm.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/bb/fetch2/gitsm.py b/lib/bb/fetch2/gitsm.py
index c125cff..0392e48 100644
--- a/lib/bb/fetch2/gitsm.py
+++ b/lib/bb/fetch2/gitsm.py
@@ -109,6 +109,7 @@ class GitSM(Git):
runfetchcmd("sed " + gitdir + "/config -i -e 's/bare.*=.*true/bare = false/'", d)
os.chdir(tmpclonedir)
runfetchcmd(ud.basecmd + " reset --hard", d)
+ runfetchcmd(ud.basecmd + " checkout " + ud.revisions[ud.names[0]], d)
runfetchcmd(ud.basecmd + " submodule init", d)
runfetchcmd(ud.basecmd + " submodule update", d)
self._set_relative_paths(tmpclonedir)
--
2.1.0
More information about the bitbake-devel
mailing list