]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto: remove containing branch check
authorBruce Ashfield <bruce.ashfield@windriver.com>
Tue, 18 Mar 2014 02:30:11 +0000 (22:30 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Sep 2014 13:34:26 +0000 (14:34 +0100)
The bitbake fetcher now enforces that a commit is contained by a branch,
so this code can be dropped from do_validate_branches.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
meta/classes/kernel-yocto.bbclass

index 4938712c7cff38e5e4a36bf375e722d5fba12a33..357a79b12311932e8357c74a61c31b7878e6cb62 100644 (file)
@@ -351,13 +351,6 @@ do_validate_branches() {
            exit 1
        fi
 
-       containing_branches=`git branch --contains $machine_srcrev | sed 's/^..//'`
-       if [ -z "$containing_branches" ]; then
-               echo "ERROR: SRCREV was set to \"$machine_srcrev\", but no branches"
-               echo "       contain this commit"
-               exit 1
-       fi
-
        ## KMETA branch validation.
        ## We do validation if the meta branch exists, and AUTOREV hasn't been set
        meta_head=`git show-ref -s --heads ${KMETA}`