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: 2 additions & 2 deletions src/utils/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ export class Repository {
const authorName =
this._config.repository?.commit?.author?.name || defaultAuthor.name;
const authorEmail =
this._config.repository?.commit?.author?.name ||
this._config.repository?.commit?.author?.email ||
defaultAuthor.email;

try {
await exec(`git config user.name "${authorName}"`);
await exec(`git config user.email "${authorEmail}"`);
} catch (error) {
// @ts-expect-error
error.message = `Error authenticating user "${authorName}" with e-mail "${author.email}": ${error.message}`;
error.message = `Error authenticating user "${authorName}" with e-mail "${authorEmail}": ${error.message}`;

throw error;
}
Expand Down