Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/functional/helpers/repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,14 @@ 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<void> {
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']);
}

/**
Expand Down