]> code.ossystems Code Review - openembedded-core.git/commit
externalsrc: Handle .git not being a directory
authorJoshua Watt <jpewhacker@gmail.com>
Thu, 10 Aug 2017 02:18:32 +0000 (21:18 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 Aug 2017 23:01:42 +0000 (00:01 +0100)
commit95e1341b49f7184d280a03f64f131a4468a06867
tree12ea9861ba9cd6e0d16b4921f9042579a6bc5820
parentd404d5574b0c270656fda4dc051babe82e8828a9
externalsrc: Handle .git not being a directory

Use git rev-parse to determine the location of the .git directory, in
case it is not an immediate child of EXTERNALSRC (e.g. when using
submodules). In the event git can't resolve the .git directory, fall
back to the non-git method for hashing.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/externalsrc.bbclass