Compare commits

...
Author SHA1 Message Date
Vindicus999 1165fdbe0a Merge remote-tracking branch 'upstream/master' 2025-05-27 11:28:51 +00:00
Kitlith 5130bdeda5 Make patch commit committer reproducible.
Just makes setting the git config unconditional. We should probably
drop this commit if this script is also intended to be used with
repositories outside of the build deps.
2025-05-27 08:55:46 +02:00
Kitlith 38b64fe09c Make patch commit timestamps reproducible.
This forces commit timestamps to match authorship timestamps,
meaning that the only remaining avenue of variability is the
committing person.
2025-05-27 08:55:46 +02:00
+4 -4
View File
@@ -1,12 +1,12 @@
#!/bin/sh
if [ -d ".git" ] ; then
git config user.email > /dev/null || git config user.email "git-am@invalid"
git config user.name > /dev/null || git config user.name "no name"
git config --local commit.gpgsign false
git config --worktree user.email "git-am@invalid"
git config --worktree user.name "no name"
git config --worktree commit.gpgsign false
git am --abort 2> /dev/null
git checkout .
exec git am "$@"
exec git am --committer-date-is-author-date "$@"
fi
# There is no reliable way to apply a patch and succeed if it was