Skip to content

Commit

Permalink
Merge pull request #500 from chromaui/author-info
Browse files Browse the repository at this point in the history
Use commit author info instead of committer info [CH-1282]
  • Loading branch information
ghengeveld authored Jan 17, 2022
2 parents d0077cf + 60758a0 commit af84e6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin-src/git/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ export async function getSlug() {
// We could cache this, but it's probably pretty quick
export async function getCommit(revision = '') {
const result = await execGitCommand(
`git --no-pager log -n 1 --format="%H ## %ct ## %ce ## %cn" ${revision}`
// Technically this yields the author info, not committer info
`git --no-pager log -n 1 --format="%H ## %ct ## %ae ## %an" ${revision}`
);
const [commit, committedAtSeconds, committerEmail, committerName] = result.split(' ## ');
return { commit, committedAt: committedAtSeconds * 1000, committerEmail, committerName };
Expand Down

0 comments on commit af84e6c

Please # to comment.