summaryrefslogtreecommitdiffstats
path: root/scripts/lib/scriptutils.py
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2022-11-09 04:29:36 -1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-10 14:43:30 +0000
commit79434a17eb4835e85fcd477baec08c8ce49a4c14 (patch)
treea71a3c863c72355148a762244d310faa6f31c56c /scripts/lib/scriptutils.py
parent25f355e0ef2fa98699cc62587a8f265258c09fda (diff)
downloadpoky-79434a17eb4835e85fcd477baec08c8ce49a4c14.tar.gz
bitbake: bitbake: bitbake-layers: checkout layer(s) branch when clone exists
[YOCTO #7852] Fixes 'bitbake-layers layerindex-fetch --branch kirkstone meta-arm' not checking out the branch if the repo is already cloned and on a different branch. If a clone of a layer being added already exists check what branch it is on and if necessary attempt to switch to the given branch. If the switch fails to happen the git error will be reported. We also warn if there are uncommitted changes as the changes might go unnoticed and result in unexpected behaviors. (Bitbake rev: 138dd7883ee2c521900b29985b6d24a23d96563c) Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit d2cb388f58a37db2149fad34e4572d954e6e5441) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/scriptutils.py')
0 files changed, 0 insertions, 0 deletions