From 5130bdeda51c52137f11e0536273f3bfbb2f7f71 Mon Sep 17 00:00:00 2001 From: Kitlith Date: Mon, 26 May 2025 20:58:00 -0700 Subject: [PATCH] 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. --- patches/apply.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/apply.sh b/patches/apply.sh index 0aae3c60..272a2e54 100755 --- a/patches/apply.sh +++ b/patches/apply.sh @@ -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 "$@"