templates: spell ASCII in uppercase in pre-commit hook
The name of the encoding is ASCII, not ascii. Signed-off-by: Richard Hartmann <richih.mailinglist@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Richard Hartmann committed
Jul 14, 2013 at 18:21 UTC
7b3742fa466401574a2ff380d5d121b2ac5cea45
1 file changed
+3
-3
templates/hooks--pre-commit.sample
+3
-3
@@ -15,13 +15,13 @@ else
15
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
16
fi
17
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.
19
allownonascii=$(git config hooks.allownonascii)
20
21
# Redirect output to stderr.
22
exec 1>&2
23
24
-# Cross platform projects tend to avoid non-ascii filenames; prevent
24
+# Cross platform projects tend to avoid non-ASCII filenames; prevent
25
# them from being added to the repository. We exploit the fact that the
26
# printable range starts at the space character and ends with tilde.
27
if [ "$allownonascii" != "true" ] &&
@@ -32,7 +32,7 @@ if [ "$allownonascii" != "true" ] &&
32
LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
33
then
34
cat <<\EOF
35
-Error: Attempt to add a non-ascii file name.
35
+Error: Attempt to add a non-ASCII file name.
36
37
This can cause problems if you want to work with people on other platforms.
38