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.
This commit is contained in:
Kitlith
2025-05-27 08:55:46 +02:00
committed by xytovl
parent 38b64fe09c
commit 5130bdeda5
+3 -3
View File
@@ -1,9 +1,9 @@
#!/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 --committer-date-is-author-date "$@"