From 4af365562257ebaadc6513d5c5be9eecda318e87 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sat, 26 Dec 2015 19:55:31 -0700 Subject: genbuild_h.sh: Get current rev for git revision, not origin/master Using origin/master as the git revision breaks reproducibility, giving different values depending on when the code was pulled from the repo at coreboot.org. By using the current revision instead, we get identical builds. Change-Id: If4be6e048d6c8e417b8c074199745900ccd82b49 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/12807 Tested-by: build bot (Jenkins) Reviewed-by: Zheng Bao Reviewed-by: Paul Menzel Reviewed-by: Alexandru Gagniuc --- util/genbuild_h/genbuild_h.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/genbuild_h/genbuild_h.sh b/util/genbuild_h/genbuild_h.sh index 0fac0d03d6..4c8f602163 100755 --- a/util/genbuild_h/genbuild_h.sh +++ b/util/genbuild_h/genbuild_h.sh @@ -25,7 +25,7 @@ export TZ=UTC top=`dirname $0`/../.. if [ -d "${top}/.git" -a -x "$(command -v git)" ]; then - GITREV=$(LANG= git log remotes/origin/master -1 --format=format:%h) + GITREV=$(LANG= git log -1 --format=format:%h) TIMESOURCE=git DATE=$(git log --pretty=format:%ct -1) else -- cgit v1.2.3