From e223a7e21a96ad76033d3f0a2183383b7db5e2a7 Mon Sep 17 00:00:00 2001 From: yugasun Date: Sun, 15 Oct 2017 14:55:58 +0800 Subject: [PATCH] fix: git commit log author bug --- src/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.js b/src/utils.js index e61b010..6ea42a7 100755 --- a/src/utils.js +++ b/src/utils.js @@ -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+/);