From 8842cc57a123c787064d6d75b09650f251f72c09 Mon Sep 17 00:00:00 2001 From: Erik Marks Date: Sun, 3 Dec 2023 15:38:48 -0800 Subject: [PATCH 1/2] Disable git commit GPG signing in tests --- tests/functional/helpers/repo.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/functional/helpers/repo.ts b/tests/functional/helpers/repo.ts index 7105e62..fc1c359 100644 --- a/tests/functional/helpers/repo.ts +++ b/tests/functional/helpers/repo.ts @@ -224,6 +224,7 @@ export default abstract class Repo { protected async afterCreate(): Promise { await this.runCommand('git', ['config', 'user.email', 'test@example.com']); await this.runCommand('git', ['config', 'user.name', 'Test User']); + await this.runCommand('git', ['config', 'commit.gpgsign', 'false']); } /** From 1d815012e399dea545eaada37327bdfa9bb202ca Mon Sep 17 00:00:00 2001 From: Erik Marks Date: Sun, 3 Dec 2023 18:07:10 -0800 Subject: [PATCH 2/2] Update docstring of relevant function --- tests/functional/helpers/repo.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/functional/helpers/repo.ts b/tests/functional/helpers/repo.ts index fc1c359..54872c7 100644 --- a/tests/functional/helpers/repo.ts +++ b/tests/functional/helpers/repo.ts @@ -218,7 +218,8 @@ export default abstract class Repo { /** * Custom logic with which to further initialize the repo after it is created. - * By default, this configures Git to use an email and name for commits. + * By default, this configures Git to use an email and name for commits, and + * disables GPG signing, which may cause problems in local environments. * Can be overridden in subclasses. */ protected async afterCreate(): Promise {