Skip to content

Commit 27fe411

Browse files
Fixed author email
1 parent 1fc3b07 commit 27fe411

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/repository.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ export class Repository {
2424
const authorName =
2525
this._config.repository?.commit?.author?.name || defaultAuthor.name;
2626
const authorEmail =
27-
this._config.repository?.commit?.author?.name ||
27+
this._config.repository?.commit?.author?.email ||
2828
defaultAuthor.email;
2929

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

3737
throw error;
3838
}

0 commit comments

Comments
 (0)