summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPaul Barker <paul@pbarker.dev>2021-08-02 11:44:30 +0100
committerSteve Sakoman <steve@sakoman.com>2021-08-16 04:41:07 -1000
commit3a16f312e5942e8a3d6f77a550c5374da81eed37 (patch)
tree4796a6f1a3654e8ace5a1eae15ccccafa2af809a /scripts
parent46dd415720eb507a3d181a289b155ac4cfc2219c (diff)
downloadopenembedded-core-3a16f312e5942e8a3d6f77a550c5374da81eed37.tar.gz
kernel-yocto: Simplify no git repo case in do_kernel_checkout
If the kernel sources are not fetched via git, a local git repository is created in do_kernel_checkout. In this case we know that there will be no remote branches and we will already be on the correct branch (since only one branch will exist). So we can simplify things by skipping these steps. This also removes the assumption that the default git branch name will be "master". Prior to this change, the final git checkout command in do_kernel_checkout could fail if a local git repo was created and the user had changed init.defaultBranch in their gitconfig. Signed-off-by: Paul Barker <paul@pbarker.dev> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit af2a9c92d4498492ca23388c7b4bbed48abdc4d7) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions