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

Burton, Ross ross.burton at intel.com
Tue Aug 8 19:32:15 UTC 2017


On 8 August 2017 at 02:46, Joshua Watt <jpewhacker at gmail.com> wrote:

> +        git_dir = subprocess.check_output(['git', 'rev-parse',
> '--absolute-git-dir'], cwd=s_dir).decode("utf-8").rstrip()
>

Doesn't work with my old git:

bb.data_smart.ExpansionError: Failure expanding variable
do_compile[file-checksums], expression was ${@srctree_hash_files(d)} which
triggered exception FileNotFoundError: [Errno 2] No such file or directory:
'--absolute-git-dir/index'
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

$ git rev-parse --absolute-git-dir
--absolute-git-dir
$ git --version
git version 2.11.0

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170808/48ddb02f/attachment-0002.html>


More information about the Openembedded-core mailing list