]> 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)
committerSteve Sakoman <steve@sakoman.com>
Sat, 14 Nov 2020 19:08:30 +0000 (09:08 -1000)
commit31f00ec9c6ab5fe74f1ba59f79322497ef8f4dc7
treeab1e19614d76c4a1b535077154f1fa1863cae9a1
parent02e42107e1c6145c215bfd74fe17fd8abc2db04f
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>
(cherry picked from commit cdbd47dd7e1657b91b65a0940b7cbf119764240f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oe/reproducible.py