Skip to content

Commit 23b4a72

Browse files
committed
Disable git GPG signing in tests
1 parent 717f9a3 commit 23b4a72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/functional/helpers/repo.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,14 @@ export default abstract class Repo {
218218

219219
/**
220220
* Custom logic with which to further initialize the repo after it is created.
221-
* By default, this configures Git to use an email and name for commits.
221+
* By default, this configures Git to use an email and name for commits, and
222+
* disables GPG signing, which may cause problems in local environments.
222223
* Can be overridden in subclasses.
223224
*/
224225
protected async afterCreate(): Promise<void> {
225226
await this.runCommand('git', ['config', 'user.email', '[email protected]']);
226227
await this.runCommand('git', ['config', 'user.name', 'Test User']);
228+
await this.runCommand('git', ['config', 'commit.gpgsign', 'false']);
227229
}
228230

229231
/**

0 commit comments

Comments
 (0)