[OE-core] [PATCH] externalsrc: Handle .git not being a directory

Christopher Larson kergoth at gmail.com
Sat Aug 5 23:37:27 UTC 2017


On Sat, Aug 5, 2017 at 3:07 PM, Joshua Watt <jpewhacker at gmail.com> wrote:

> If EXTERNALSRC points to a git submodule, the .git entry will not be a
> directory, but rather a file that points to the actual .git location (in
> the parent repository). If this still can't be resolved to a directory,
> ignore it and fall back to the non-git method for hashing.
>
> Signed-off-by: Joshua Watt <JPEWhacker at gmail.com>
>

We shouldn’t be assuming knowledge of how .git works, IMO we should call
out to git rev-parse to query the info we need.
-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170805/f623e829/attachment-0002.html>


More information about the Openembedded-core mailing list