diff options
| author | Mark Asselstine <mark.asselstine@windriver.com> | 2022-10-09 19:26:24 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-10-29 16:30:43 +0100 |
| commit | 78fd269e6649000b48ef1ef3e86009bad00fa815 (patch) | |
| tree | 37c7d135a2958a02c0b4368d03de74d4da988f32 /scripts/lib/checklayer/context.py | |
| parent | 6ca9f04b8e2cf1475ead09e55ac6282cab3ee9e7 (diff) | |
| download | poky-78fd269e6649000b48ef1ef3e86009bad00fa815.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: d2cb388f58a37db2149fad34e4572d954e6e5441)
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>
Diffstat (limited to 'scripts/lib/checklayer/context.py')
0 files changed, 0 insertions, 0 deletions
