]> code.ossystems Code Review - openembedded-core.git/commit
kernel-yocto: replace --is-ancestor with basic git porcelain commands
authorBruce Ashfield <bruce.ashfield@windriver.com>
Sun, 31 Aug 2014 05:18:24 +0000 (01:18 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Sep 2014 13:34:28 +0000 (14:34 +0100)
commit2ddfffe52720d1df70b04131eac553776da7bc73
tree359db6c8b5374d9ecedde5239bfd850d4efc153e
parent362aaebbeb7b241edba00dd8ea08eab07596378c
kernel-yocto: replace --is-ancestor with basic git porcelain commands

--is-ancestor is a relatively new git option [commit 5907cda1, Aug 30 2012].
To support build machines with older versions of git installed, we can use
the basic porcelain commands to acheive the same check.

merge-base: "--is-ancestor A B" can be replaced with:

    if test "$(git rev-parse --verify A)" = "$(git merge-base A B)"

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass