From b6b5f709346df5861d4192472a090236d3d448f1 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 11 Sep 2026 19:30:53 +0100 Subject: [PATCH] init.sh: set git committer date as well only the author date was being set before with this change, at least on my system, i now get the same commit ID and date each time on the following test: NOTE: . is lbmk (main work directory) NOTE: here, we are copying the current clone git clone . lbmktest cd lbmktest ./mk version rm -Rf .git ./mk version git log same output each time. we have thus eliminated timestamps as a variable. this is but a part of in a series of changes that will eventually lead to libreboot being built reproducibly. Signed-off-by: Leah Rowe --- include/init.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/init.sh b/include/init.sh index eb0cfdca..03878d41 100644 --- a/include/init.sh +++ b/include/init.sh @@ -426,7 +426,8 @@ xbmk_git_init() x_ git init 1>/dev/null 2>/dev/null x_ git add -A . 1>/dev/null 2>/dev/null - x_ git -c user.name="xbmk" -c user.email="xbmk@example.com" \ + GIT_COMMITTER_DATE="@$versiondate +0000" \ + x_ git -c user.name="xbmk" -c user.email="xbmk@example.com" \ commit -m "$projectname $version" --date "@$versiondate +0000" \ --author="xbmk " 1>/dev/null 2>/dev/null x_ git -c user.name="xbmk" -c user.email="xbmk@example.com" \