]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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:03:14 +0000 (00:03 +0100)
commit3ca6085729d9a1025156c7a47f433981c2076995
treebf561ac2231ded1b012d321152fb67983e67ee19
parent9dcc9f116e84fb33fbcd6b9892a3ad792fca5364
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.

(From OE-Core rev: 95e1341b49f7184d280a03f64f131a4468a06867)

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