We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fc3b07 commit 27fe411Copy full SHA for 27fe411
1 file changed
src/utils/repository.ts
@@ -24,15 +24,15 @@ export class Repository {
24
const authorName =
25
this._config.repository?.commit?.author?.name || defaultAuthor.name;
26
const authorEmail =
27
- this._config.repository?.commit?.author?.name ||
+ this._config.repository?.commit?.author?.email ||
28
defaultAuthor.email;
29
30
try {
31
await exec(`git config user.name "${authorName}"`);
32
await exec(`git config user.email "${authorEmail}"`);
33
} catch (error) {
34
// @ts-expect-error
35
- 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}`;
36
37
throw error;
38
}
0 commit comments