Skip to content

Commit e223a7e

Browse files
yugasunxuexb
authored andcommitted
fix: git commit log author bug
1 parent db4f5cc commit e223a7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ const utils = {
7676
const shell = [
7777
'cd {dir}',
7878
options.hash
79-
? 'git log {before}..{after} --no-merges --pretty=format:"- [%h]({html_url}/commit/%H) - %s, by @%cn"'
80-
: 'git log {before}..{after} --no-merges --pretty=format:"- %s, by @%cn"'
79+
? 'git log {before}..{after} --no-merges --pretty=format:"- [%h]({html_url}/commit/%H) - %s, by @%aN <<%ae>>"'
80+
: 'git log {before}..{after} --no-merges --pretty=format:"- %s, by @%aN <<%ae>>"'
8181
].join(' && ');
8282

8383
return execSync(format(shell, options)).toString().split(/\n+/);

0 commit comments

Comments
 (0)