[coreboot-gerrit] New patch to review for coreboot: genbuild_h: Actually use git's current commit for timestamp if possible

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Sun Aug 9 20:55:22 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11147

-gerrit

commit 07000fc110327cfee4545d59c7d7f40be9970d9b
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Sun Aug 9 20:53:59 2015 +0200

    genbuild_h: Actually use git's current commit for timestamp if possible
    
    The test failed to trigger because top wasn't set.
    
    Change-Id: I96de16a1b5cbc5a64d8e65ed84fd6849dd618e8f
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 util/genbuild_h/genbuild_h.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/util/genbuild_h/genbuild_h.sh b/util/genbuild_h/genbuild_h.sh
index 0a70eb8..a3e4453 100755
--- a/util/genbuild_h/genbuild_h.sh
+++ b/util/genbuild_h/genbuild_h.sh
@@ -26,7 +26,9 @@ export LANG=C
 export LC_ALL=C
 export TZ=UTC
 
-if [ -d "${top}/.git" ] && [ -f "$(command -v git)" ]; then
+top=`dirname $0`/../..
+
+if [ -d "${top}/.git" -a -x "$(command -v git)" ]; then
 	GITREV=$(LANG= git log remotes/origin/master -1 --format=format:%h)
 	TIMESOURCE=git
 	DATE=$(git log --pretty=format:%ct -1)



More information about the coreboot-gerrit mailing list