Skip to content

Commit

Permalink
fix: check-mailmap has problems with log.showSignature true
Browse files Browse the repository at this point in the history
Fixes #111

log.showSignature true shows additional signature information. This patch removes the detailed information.
  • Loading branch information
jlec committed Oct 15, 2023
1 parent 3898055 commit 33728b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pre_commit_hooks/check-mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ check_email() {
# How we want it to appear How it appears in git commit
#
# See git-shortlog(1) for more details.
output="$(! git 2>&1 log --use-mailmap --pretty='%aN %aE' | tr '[:upper:]' '[:lower:]' | sort -u | awk '{print $NF}' | sort | uniq -c | sed -e 's/^[ \t]*//' | grep -v '^1[[:space:]]' | awk '{print $NF}')"
output="$(! git 2>&1 log --use-mailmap --pretty='%aN %aE' | grep -v 'gpg' | tr '[:upper:]' '[:lower:]' | sort -u | awk '{print $NF}' | sort | uniq -c | sed -e 's/^[ \t]*//' | grep -v '^1[[:space:]]' | awk '{print $NF}')"

if [ -n "${output}" ]; then
RC=1
Expand All @@ -43,4 +43,4 @@ check_email() {
}

main
exit ${RC}
exit "${RC}"

0 comments on commit 33728b8

Please sign in to comment.