]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/reproducible: Fix error when no git HEAD
authorJoshua Watt <JPEWhacker@gmail.com>
Mon, 20 Jul 2020 17:56:32 +0000 (12:56 -0500)
committerSteve Sakoman <steve@sakoman.com>
Sat, 14 Nov 2020 19:08:09 +0000 (09:08 -1000)
commit02e42107e1c6145c215bfd74fe17fd8abc2db04f
treeda6a4c50c2902cd54009be475c20b760059f9ce1
parentbb957547fbd3f6670220706642b49fee560c6b75
lib/oe/reproducible: Fix error when no git HEAD

Fixes an error that occurs when attempting to get the timestamp of the
latest commit when there is no HEAD in the git repository. The easiest
way to trigger this condition is to use the 'subdir=' option when
specifying a 'git://' SRC_URI.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a64caca5b5dbe4a76acd0b5709b2c3e75b245863)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oe/reproducible.py