]> code.ossystems Code Review - openembedded-core.git/commit
buildhistory: fix the check for existence of a git repo
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 27 Jan 2016 12:50:53 +0000 (14:50 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Jan 2016 18:14:53 +0000 (18:14 +0000)
commita5e931e0b1d941cc938fe2f49625c54b07fab0ce
treeb50a82fc04d8faa8c8082973ba7595769dae399f
parent20c897d34ba4ea3985723383a0effa3631cd925e
buildhistory: fix the check for existence of a git repo

Previously, in order to determine the existence of an already
initialized Git repository we checked if a directory named '.git' was
present in the buildhistory dir. However, e.g. in the case of git
submodules '.git' may also be a regular file referencing some other
location which was causing unwanted behavior. This patch changes
buildhistory.bbclass to check for any file named '.git' which fixes
these problems.

[YOCTO #8911]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/buildhistory.bbclass