summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-11 19:30:53 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-11 19:32:12 +0100
commitb6b5f709346df5861d4192472a090236d3d448f1 (patch)
tree4293d7c6a53388d6b2c0f7ef4cb67a535fe01f6b /include
parent58094bd0176be132aa4f01359c1edcdf2f9ff798 (diff)
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 <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/init.sh3
1 files changed, 2 insertions, 1 deletions
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 <xbmk@example.com>" 1>/dev/null 2>/dev/null
x_ git -c user.name="xbmk" -c user.email="xbmk@example.com" \