]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/reproducible.py: Fix git HEAD check
authorJoshua Watt <JPEWhacker@gmail.com>
Tue, 28 Jul 2020 16:14:26 +0000 (11:14 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Jul 2020 10:34:53 +0000 (11:34 +0100)
commitcdbd47dd7e1657b91b65a0940b7cbf119764240f
tree5b5055096e6feebd7f2f1d02aeaa40d09d329670
parent99314a9a877d285a0155eb020bd86172469c4de6
lib/oe/reproducible.py: Fix git HEAD check

The check for a git HEAD still wasn't quite correct because it was using
the .git directory as the current working directory. Instead, it should
be passed as the --git-dir argument when running git. Running `git
rev-parse HEAD` in a .git directory with no HEAD reports 'HEAD' and
exits with success but then 'git log' will fail, which is not what we
want.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/reproducible.py