Whamcloud - gitweb
LU-7328 misc: no non-ASCII characters in commit messages 04/53304/2
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 30 Nov 2023 23:00:38 +0000 (16:00 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 20 Dec 2023 01:58:28 +0000 (01:58 +0000)
commitf76d6ecc788a522916469f202f2e7f0d7cee1b77
tree8bd355d6d25fac9f5817fd56f22236d832b30398
parentf35f897ec8ec0752ea4d4830e72f5193375a474b
LU-7328 misc: no non-ASCII characters in commit messages

Some commit messages have control characters, or fancy quotation
marks, or mdash hyphens or similar, and this messes up the display
of "git log" and other tools depending on the current locale and
character set used in the terminal.

Add a check into commit-msg to reject commit messages that have
non-ASCII characters. This does not apply to characters used in
the Signed-off-by: or similar fields that list people's names.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I99d0954a68f8a5391195553ebf4b69181b6991f2
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53304
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/git-hooks/commit-msg
contrib/git-hooks/tests/commit.nonascii [new file with mode: 0644]