From 62caaa4d6d1e3585c94c34af91e94d1b0deba8c3 Mon Sep 17 00:00:00 2001 From: "Felipe F. Tonello" Date: Mon, 6 Jul 2015 17:05:43 +0100 Subject: bitbake: fetch2: Checkout to correct ref begore init and update submodules This is nessary when specified branch with submodules is different then default (master) branch. [YOCTO #7771] (Bitbake rev: f7b0b5e33e00f3ce0744322eee93835ee76bf184) Signed-off-by: Felipe F. Tonello Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/gitsm.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake') diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py index c125cff54b..0392e48d1a 100644 --- a/bitbake/lib/bb/fetch2/gitsm.py +++ b/bitbake/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) -- cgit v1.2.3-54-g00ecf