[OE-core] [PATCH] Do not always checkout master branch in the kernel repository
Arun Bharadwaj
arun at gumstix.com
Sat Apr 11 01:17:19 UTC 2015
It seems like we are checking if a particular branch exists and
then we still go ahead and set the machine_branch as master.
This doesn't seem correct to me as it would work only for
repositories which contain a branch called "master" but would
fail in other cases.
---
meta/classes/kernel-yocto.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index f42a5c2..410a6e8 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -211,7 +211,7 @@ do_kernel_checkout() {
# Create a working tree copy of the kernel by checking out a branch
machine_branch="${@ get_machine_branch(d, "${KBRANCH}" )}"
git show-ref --quiet --verify -- "refs/heads/${machine_branch}"
- if [ $? -eq 0 ]; then
+ if [ $? -ne 0 ]; then
machine_branch="master"
fi
--
1.9.1
More information about the Openembedded-core
mailing list