summaryrefslogtreecommitdiffstats
path: root/util/genbuild_h
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2015-12-26 19:55:31 -0700
committerMartin Roth <martinroth@google.com>2015-12-28 04:16:54 +0100
commit4af365562257ebaadc6513d5c5be9eecda318e87 (patch)
tree42055de79c0738c6fa76195af56e802c748670d6 /util/genbuild_h
parent90d12351fd5c3626edd283aafe20b2a427f9d344 (diff)
downloadcoreboot-4af365562257ebaadc6513d5c5be9eecda318e87.tar.gz
coreboot-4af365562257ebaadc6513d5c5be9eecda318e87.tar.bz2
coreboot-4af365562257ebaadc6513d5c5be9eecda318e87.zip
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 <martinroth@google.com> Reviewed-on: https://review.coreboot.org/12807 Tested-by: build bot (Jenkins) Reviewed-by: Zheng Bao <zheng.bao@amd.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'util/genbuild_h')
-rwxr-xr-xutil/genbuild_h/genbuild_h.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/genbuild_h/genbuild_h.sh b/util/genbuild_h/genbuild_h.sh
index 0fac0d03d608..4c8f60216321 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