diff options
author | Felipe F. Tonello <eu@felipetonello.com> | 2015-07-06 17:05:43 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-07 13:46:50 +0100 |
commit | f7b0b5e33e00f3ce0744322eee93835ee76bf184 (patch) | |
tree | cffd20c4428844d489c19dbebb3e6eea2ed7a729 /lib/bb/fetch2/gitsm.py | |
parent | 915ba08a8a3013e9787e564f2ffd8698c948f433 (diff) | |
download | bitbake-contrib-f7b0b5e33e00f3ce0744322eee93835ee76bf184.tar.gz |
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]
Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/gitsm.py')
-rw-r--r-- | lib/bb/fetch2/gitsm.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/fetch2/gitsm.py b/lib/bb/fetch2/gitsm.py index c125cff54..0392e48d1 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) |