From 51a461b32d9e840d7f4cb88d746dcc7c837894e9 Mon Sep 17 00:00:00 2001
From: FibreFoX <fibrefox@dynamicfiles.de>
Date: Tue, 26 Dec 2023 15:55:02 +0100
Subject: [PATCH] do not sign temporary commit when creating patch file

---
 src/makePatch.ts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/makePatch.ts b/src/makePatch.ts
index 4d040297..42d9c37e 100644
--- a/src/makePatch.ts
+++ b/src/makePatch.ts
@@ -267,6 +267,9 @@ export function makePatch({
     git("config", "--local", "user.name", "patch-package")
     git("config", "--local", "user.email", "patch@pack.age")
 
+    // installed git could be configured to always sign, so override that just in case
+    git("config", "--local", "commit.gpgsign", "false")
+
     // remove ignored files first
     removeIgnoredFiles(tmpRepoPackagePath, includePaths, excludePaths)