diff options
author | Mark Asselstine <mark.asselstine@windriver.com> | 2022-11-09 04:29:36 -1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-10 14:43:24 +0000 |
commit | 138dd7883ee2c521900b29985b6d24a23d96563c (patch) | |
tree | cbddbe73664986767d010f461c33be7bc13838eb /bin/git-make-shallow | |
parent | 4bdd9ba43f34a1473db31a6a3b10bd33e358fe3a (diff) | |
download | bitbake-138dd7883ee2c521900b29985b6d24a23d96563c.tar.gz |
bitbake: bitbake-layers: checkout layer(s) branch when clone existsyocto-4.1.12022-10.1-langdale2.2.1
[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.
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 'bin/git-make-shallow')
0 files changed, 0 insertions, 0 deletions