Skip to content

Commit 3e14dd2

Browse files
robertpjdaygitster
authored andcommitted
mention use of "hooks.allownonascii" in "man githooks"
The default pre-commit script checks the config variable "hooks.allownonascii" to determine whether to allow non-ASCII file names -- mention this in "man githooks", just as the section on "update" mentions the use of "hooks.allowunannotated". Signed-off-by: Robert P. J. Day <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0d0ac38 commit 3e14dd2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/githooks.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ All the `git commit` hooks are invoked with the environment
9999
variable `GIT_EDITOR=:` if the command will not bring up an editor
100100
to modify the commit message.
101101

102+
The default 'pre-commit' hook, when enabled--and with the
103+
`hooks.allownonascii` config option unset or set to false--prevents
104+
the use of non-ASCII filenames.
105+
102106
prepare-commit-msg
103107
~~~~~~~~~~~~~~~~~~
104108

0 commit comments

Comments
 (0)