Skip to content

Commit 7b3742f

Browse files
RichiHgitster
authored andcommitted
templates: spell ASCII in uppercase in pre-commit hook
The name of the encoding is ASCII, not ascii. Signed-off-by: Richard Hartmann <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b1d5a57 commit 7b3742f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/hooks--pre-commit.sample

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ else
1515
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
1616
fi
1717

18-
# If you want to allow non-ascii filenames set this variable to true.
18+
# If you want to allow non-ASCII filenames set this variable to true.
1919
allownonascii=$(git config hooks.allownonascii)
2020

2121
# Redirect output to stderr.
2222
exec 1>&2
2323

24-
# Cross platform projects tend to avoid non-ascii filenames; prevent
24+
# Cross platform projects tend to avoid non-ASCII filenames; prevent
2525
# them from being added to the repository. We exploit the fact that the
2626
# printable range starts at the space character and ends with tilde.
2727
if [ "$allownonascii" != "true" ] &&
@@ -32,7 +32,7 @@ if [ "$allownonascii" != "true" ] &&
3232
LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
3333
then
3434
cat <<\EOF
35-
Error: Attempt to add a non-ascii file name.
35+
Error: Attempt to add a non-ASCII file name.
3636
3737
This can cause problems if you want to work with people on other platforms.
3838

0 commit comments

Comments
 (0)