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

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to