Skip to content

Commit

Permalink
fix: git commit log author bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yugasun authored and xuexb committed Oct 15, 2017
1 parent db4f5cc commit e223a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ const utils = {
const shell = [
'cd {dir}',
options.hash
? 'git log {before}..{after} --no-merges --pretty=format:"- [%h]({html_url}/commit/%H) - %s, by @%cn"'
: 'git log {before}..{after} --no-merges --pretty=format:"- %s, by @%cn"'
? 'git log {before}..{after} --no-merges --pretty=format:"- [%h]({html_url}/commit/%H) - %s, by @%aN <<%ae>>"'
: 'git log {before}..{after} --no-merges --pretty=format:"- %s, by @%aN <<%ae>>"'
].join(' && ');

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

0 comments on commit e223a7e

Please sign in to comment.